← Back to team overview

zim-wiki team mailing list archive

Re: Different behaviour export using gui and command line

 

OK, found the difference - it appears in an embedded code block. Looks like
the plugin is not loaded in the commandline case and the fallback does not
handle the html escapes correctly.

Will try to fix
a/ escaping in default object handler
b/ ensure object plugins load for export commandline as well

Regards,

Jaap


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

> 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,
>
> Paulo
>
>
>
> 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.
>
> Regards,
>
> Jaap
>
>
>
> On Fri, Apr 21, 2017 at 5:33 PM Paulo van Breugel <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 converted.
>>
>> 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,
>>
>> Paulo
>>
>>
>>
>>
>>
>>
>>
>>
>

References