← Back to team overview

zim-wiki team mailing list archive

Re: Different behaviour export using gui and command line


Hi Jaap,

Weird, wondering what I am doing wrong. Would you mind having a look? I have attached a zim notebook (test) and exported webpages (export_gui and export_cl).

Both are exported using the default html export template. The export_gui using the gui and the other using:

zim --export --output="/home/paulo/Desktop/export_cl" /home/paulo/Desktop/test

As you can see, in the one exported from the command line, the code in the code block is changed. What I also noticed is that the line numbering is missing.

Best wishes,


On 21-04-17 18:16, Jaap Karssenberg wrote:
Hi Paulo,

Just ran a quick test, but I do not observe the issue you mention. From code structure I can also not imagine these two can behave different in this aspect, they use the same functions to do the actual exporting.



On Fri, Apr 21, 2017 at 5:33 PM Paulo van Breugel <p.vanbreugel@xxxxxxxxx <mailto:p.vanbreugel@xxxxxxxxx>> wrote:

    Hi Jaap,

    When exporting a notebook using the GUI, all special characters in
    verbatim text and text in code blocks are converted, for example:

     > is converted to &gt;

    However, when exporting from the command line, special characters
    like <
    and > are exported to the html page as such, i.e., they are not

    The first behaviour is most desirable, as it allows one to have
    any text
    shown as intended on a html page, such as programming code.

    Is there a way to change how this is done on the command line to match
    how it is done when using the GUI?

    Best wishes,


Attachment: test.zip
Description: Zip archive

Follow ups