getnikola / plugins

Extra plugins for Nikola
https://plugins.getnikola.com/
MIT License
56 stars 92 forks source link

gallery_directive / gallery_shortcode plugin on Windows #402

Open sedutec opened 2 years ago

sedutec commented 2 years ago

Hello, I am using Nikola 8.2.0 on my Win10 machine with Winpython 3.9.8.0 and have a Windows specific problem when using the gallery_directive or the gallery_shortcode. It is a typical forward vs backslash issue. On my Linux machine this error is not there.

This is part of the generated output. The problem is the %5C, which represents the backslash. If I manually replace %5C with "/", then everything is fine.

<div id="gallery_container"></div>
<div class="row">
    <div class="col-xs-6 col-md-3">
        <a href="../../galleries%5CCivetta/Civetta01.jpg" class="thumbnail image-reference" title="Civetta01">
            <img src="../../galleries%5CCivetta/Civetta01.thumbnail.jpg" alt="Civetta01"></a>
    </div>
    <div class="col-xs-6 col-md-3">
        <a href="../../galleries%5CCivetta/Civetta02.jpg" class="thumbnail image-reference" title="Civetta02">
            <img src="../../galleries%5CCivetta/Civetta02.thumbnail.jpg" alt="Civetta02"></a>
    </div>

I firstly tried to fix the problem myself, but I even didn't succeed to get a simple print statement out to the console.
Regards, Sebastian