Action: check WSMB
Reason: customer check this then got error
Result: finish, result is good, in spec
every single sentence every row, I using markdown to convert
this plain text to html but it did not go as i expected.
the formated text is below,
<p>Action: check WSMB
Reason: customer check this then got error
Result: finish, result is good, in spec</p>
this is not what i expected, i want every single sentence every row,
it misses some html mark.
what should i do?
someone help me.
My function of markdown.
from markdown import markdown
save(self):
self.action_html = markdown(self.action_detail, extensions = [],
safe_mode=True, output_format = 'html4',)
Action: check WSMB
Reason: customer check this then got error
Result: finish, result is good, in spec
Since you have not specified what you expect your markdown text to become, there is little we can do to help you with.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Tjkni_VHXCUJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Action: check WSMB
Reason: customer check this then got error
Result: finish, result is good, in spec
what i want is
html format
Action: check WSMB<br>
Reason: customer check this then got error<br>
Result: finish, result is good, in spec<br>
--
chlin
> what i want is
To quote the friendly manual:
"When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then type return."
If you're copy/pasting test that's not Markdown, then Markdown will
not magically help you. If you have unformatted text that you want to
turn into html, you're probably going to have to do a little text
pre-processing. Good news: you're using Python and text processing is
easily in python.
on the way to what i want.
--
chlin