[kwlug-disc] <a>whitespaces</a> to <a/>

Chris Irwin chris at chrisirwin.ca
Wed Dec 23 23:50:38 EST 2020


I'm not sure if `xmllint --format` would reflow tags, or just adjust indenting.

There's also tools like prettier, which has an XML plugin:

https://github.com/prettier/prettier
https://github.com/prettier/plugin-xml

-- 
*Chris Irwin*

email:   chris at chrisirwin.ca
 xmpp:   chris at chrisirwin.ca
  web: https://chrisirwin.ca


On Wed, Dec 23, 2020, at 21:04, William Park via kwlug-disc wrote:
> Hi guys,
> 
> How do you replace 2 liner
>     <node>
>     </node>
> with just 1 liner
>     <node/>
> ?
> 
> I have files with 2 liners and files with 1 liner.  The whitespaces
> inside "node" are meaningless and disposable.  But, "diff" doesn't know
> that.
> -- 
> William Park <opengeometry at yahoo.ca>
> 
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20201223/195a807d/attachment.htm>


More information about the kwlug-disc mailing list