SVG String modified to /*__TAGLIB <string> TAGLIB__*/ when compiled

asked 2014-05-12 08:53:43 +0800

JustinFrost gravatar image JustinFrost
145 1 6

I am creating a theme for my ZK App and have stored the SVG images as less variables as follows:

@svgCircle: ~'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="circle" height="100" width="100"><circle cx="50" cy="50" r="40" stroke-width="3" fill="#14a2bf"/></svg>';

When this less is compiled when building my theme, the @svgCircle resolves to the following:

'/*__TAGLIB <svg>...</svg>  TAGLIB__*/'

I believe this is part of the conversion to .dsp files, is there any way to prevent this from happening.

Thanks in advance..

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-05-14 10:22:41 +0800

vincentjian gravatar image vincentjian
2245 6


Are you using zkless-engine-maven-plugin to compile LESS to .dsp files? It seems caused by the regex replacement in SyntaxHelper.encodeDsp() API. You can download the source code and try overriding it to match your need.

link publish delete flag offensive edit

answered 2014-06-17 09:21:30 +0800

JustinFrost gravatar image JustinFrost
145 1 6

Thanks vincentjian.

I ended overriding the method in zkless-engine-maven-plugin, and it now works.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2014-05-12 08:53:43 +0800

Seen: 6 times

Last updated: Jun 17 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More