Unable to Configure XML_PER_LINE Without First and End Lines
emmberk opened this issue · comments
Emily Berk commented
I'd like an xml header that looks like
<?xml version="1.0" encoding="UTF-8"?>
<!-- header -->
<...
but the default XML_PER_LINE
style puts a blank line before and after the header line
<?xml version="1.0" encoding="UTF-8"?>
<!-- header -->
<...
There doesn't appear to be a way to define a custom headerDefinition
that doesn't include those extra lines because firstLine
and endLine
are required.
Mathieu Carbou commented
Hi @emmberk : the plugin allows to change the definition of a style. You could redefine XML_PER_LINE
to just remove the EOL
in the definition. From the quick test I did by removing them in the code, it works