CDSoft / pp

PP - Generic preprocessor (with pandoc in mind) - macros, literate programming, diagrams, scripts...
http://cdelord.fr/pp
GNU General Public License v3.0
253 stars 21 forks source link

Ditaa svg support #88

Closed rudolph9 closed 9 months ago

rudolph9 commented 4 years ago

Ditaa now has support for outputting svgs

    --svg                       Write a SVG image as destination file.

https://github.com/stathissideris/ditaa

Could we make this the default for processing ditaa or perhaps is there a way to set it as the default?

CDSoft commented 4 years ago

I'll do it.

CDSoft commented 4 years ago

done. Try pp 2.13.

rolandog commented 4 years ago

Hi.

Just to add some feedback, Ubuntu and Debian seem to still have release version 0.10+ds1-1.2 of ditaa (instead of the more recent 0.11), which results in a failure when the task checking .stack-work/pp-test.output is performed:

diff -b -B .stack-work/pp-test.output test/pp-test.ref of `make test` 
1,10d0
< 
< ditaa version 0.11, Copyright (C) 2004--2017  Efstathios (Stathis) Sideris
< 
< Running with options:
< overwrite
< encoding = UTF-8
< svg
< Reading file: .stack-work/img/ditaa-test.txt
< Rendering to file: .stack-work/img/ditaa-test.svg
< Done in 0sec
make: *** [Makefile:200: test-md] Error 1

I've filed a bug in Ubuntu, and another in Debian (which I'm waiting confirmation).

Here's the link for the bug report in LaunchPad:

https://bugs.launchpad.net/bugs/1886193