markup problem with embedded python
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
t4 |
New
|
Undecided
|
Unassigned |
Bug Description
If you put 2 python code segments on a page too close to each other the second one will not get pulled out of the page text and will be interpreted by markdown.
for example:
"""
Hello World
{{=plugin_
text
{{=plugin_
sometext
{{=page.id}}
other stuff
"""
will have the "plugin_rating" section skipped, and markdown will convert it to "pluging<em>rating" and the layout will fail.
a potential fix that works so far for me is:
hg diff models/db.py | more
diff -r e5db5d0e74c0 web2py/
--- a/web2py/
+++ b/web2py/
@@ -153,8 +153,8 @@
if not match: break
- k=match.end()
- text=text[
+ k=match.start() + len(key)
+ text=text[
text=