跳至內容
選單
此問題已被標幟
5763 瀏覽次數

I have a simple method to return HTML text to a field.Html but get always unwanted character on each line:

# call:
self.agenda = self._meeting_type_agenda(self.meeting_type)
@api.one  # Getting the default text for agendas depending on Meeting-type
def _meeting_type_agenda(self, meeting_type):
if meeting_type == "daily": # Daily Scrum Agenda
    return str("""<h3 style="color:blue">What did I do yesterday that helped the Development Team meet the Sprint Goal?</h3>
    <ul>
     <li>-</li> <li>-</li>
    </ul><h3 style="color:blue">What will I do today to help the Development Team meet the Sprint Goal?</h3>
    <ul>
    <li>-</li>
    <li>-</li>
     </ul><h3 style="color:blue">Do I see any impediment that prevents me or the Development Team from meeting the Sprint Goal?</h3>
    """)
elif meeting_type == "planning": # Planning Agenda
    return """
     <h3 style="color:blue"><ul>What is the goal of this sprint?</ul></h3>
     <ul>
     <li>-<br></li>
     <li>-<br></li></ul><br/>
     <h3 style="color:blue"><ul>Which tasks does it include?</ul></h3>
     <ul>
     <li>-<br></li>
     <li>-<br></li>
     </ul><br/>
     <h3 style="color:blue"><ul>Which Def. of Done does it include?</ul></h3><br/>
     """


What is worn or missing?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
10月 22
3008
1
8月 15
12933
0
2月 25
1177
0
1月 25
1011
1
12月 24
1304