Export is inconsistent between CLI and GUI
Bug #1603560 reported by
Alex Ivkin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When exporting via the File -> Export dialog into HTML the resulting file has proper HTML constructs for sourcecode plugin text. When calling zim --export the plugin dump routine is ignored.
How to reproduce: create a page with
{{{code: lang="sql" linenumbers="True"
blah blah
}}}
Run export through GUI - you will see
<pre class="brush: sql;">
1 blah blah
</pre>
in the result
Run export from the CLI and you get only <pre>blah blah</pre>
To post a comment you must log in.
I've fixed the bug myself, the issue was that the CLI did not load the sourceview plugin, since it did not have init in the proper place, unlike the table plugin.