[ 
https://issues.apache.org/jira/browse/MNG-6175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16515237#comment-16515237
 ] 

Michael Osipov edited comment on MNG-6175 at 6/17/18 10:23 PM:
---------------------------------------------------------------

This is an issue. The {{xml:space}} applies only to the configuration section 
of a plugin. The issue you seem is caused by 
[this|https://github.com/codehaus/modello/blob/b793290837a55107ee2e8f2a3015aedc01db3156/modello-plugins/modello-plugin-xpp3/src/main/java/org/codehaus/modello/plugin/xpp3/Xpp3ReaderGenerator.java#L796].
 Search also [here|https://codehaus-plexus.github.io/modello/modello.html] for 
{{trim}}. There is regression concerning Modello because the trim existed in 
[Modello code for nine 
years|https://github.com/codehaus/modello/blame/b793290837a55107ee2e8f2a3015aedc01db3156/modello-plugins/modello-plugin-xpp3/src/main/java/org/codehaus/modello/plugin/xpp3/Xpp3ReaderGenerator.java#L796].


was (Author: michael-o):
This is an issue. The {{xml:space}} applies only to the configuration section 
of a plugin. The issue you seem is caused by 
[this|https://github.com/codehaus/modello/blob/b793290837a55107ee2e8f2a3015aedc01db3156/modello-plugins/modello-plugin-xpp3/src/main/java/org/codehaus/modello/plugin/xpp3/Xpp3ReaderGenerator.java#L796].
 Search also [here|https://codehaus-plexus.github.io/modello/modello.html] for 
{{trim}}. There is regression concerning Modello because the trim existed in 
[https://github.com/codehaus/modello/blame/b793290837a55107ee2e8f2a3015aedc01db3156/modello-plugins/modello-plugin-xpp3/src/main/java/org/codehaus/modello/plugin/xpp3/Xpp3ReaderGenerator.java#L796|Modello
 code for nine years].

> Whitespace gets deleted in properties value text
> ------------------------------------------------
>
>                 Key: MNG-6175
>                 URL: https://issues.apache.org/jira/browse/MNG-6175
>             Project: Maven
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 3.3.9
>            Reporter: Jesko Jochum
>            Priority: Minor
>
> Leading and trailing whitespaces in the "pom.xml" get deleted.
> Exemplary excerpt of a "pom.xml" file:
> ...
> <properties>
> <batch.sortId xml:space="preserve"> 1 </batch.sortId>
> </properties>
> ...
> Checking the "effective pom" results in:
> ...
> <properties>
> ...
> <batch.sortId>1</batch.sortId>
> ...
> </properties>
> ...
> So the leading and trailing whitespaces have been deleted. [MNG-5380] states 
> this to be resolved since version 3.0.4.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to