ndl / wiki_external_filter

Redmine plugin which allows defining macros that process macro argument using external filter program and render its result in wiki.
http://www.ndl.kiev.ua/content/redmine-wiki-external-filter-plugin
Other
36 stars 35 forks source link

PlantUML fails as it needs a linebreak after @startuml #12

Open Kernald opened 11 years ago

Kernald commented 11 years ago

The PlantUML macro fails (It was working before, I don't know which upgrade made it fail, but I'm running Redmine 2.2.3 and PlantUML 7958), telling me there's no @startuml found. In fact, the prolog is set-up fine, but PlantUML seems to absolutely need a linebreak between @startuml and the rest of the input. For now, I added two linebreaks around the main text in the pipe, as I only use the PlantUML filter. But the real issue here, is that the filter is wrong. And I don't know how to possibly add linebreaks in the YAML config file, they seems to be ignored.

(By the way, I know you don't support it anymore, I'm using @zZLOiz 's fork, but GitHub doesn't allow to open issues on forks…)

shuva10v commented 9 years ago

I have the same issue, fixed by adding trailing \n after prolog in YAML (redmine 2.5): https://github.com/shuva10v/wiki_external_filter/commit/14a9db39f746d9723d7a95ff78c914061abd0a13