Vote #64740
未完了trac lists aren't imported as such
0%
journals
Check Patch #2748 for an updated version of the importer which fixes that issue beside others.
--------------------------------------------------------------------------------
Ah cool.. here's my solution, it's a bit more strict but does essentially the same thing.
Add following to convert_wiki_text:
<pre>
# alpha/numeric lists
text = text.gsub(/(^[ ]+)(\d+|[a-zA-Z])\.[ ]/) { |s| '#' * $1.length + ' '}
# bullet lists
text = text.gsub(/(^[ ]+)\*[ ]/) { |s| '*' * $1.length + ' '}
</pre>
Test cases:
<pre>
puts convert_wiki_text(" 1. test")
puts convert_wiki_text(" 1. test")
puts convert_wiki_text(" * test")
puts convert_wiki_text(" * test")
puts convert_wiki_text(" a. test")
puts convert_wiki_text(" a. test")
</pre>
Output:
<pre>
# test
## test
* test
** test
# test
## test
</pre>
--------------------------------------------------------------------------------
Any news on this?
Is anyone able to reproduce this with the current trunk?
--------------------------------------------------------------------------------