Replace ; With New Line

Started by Darius1968, January 08, 2022, 03:25:14 PM

Previous topic - Next topic

Darius1968

When using either the VarToy or Copy Data Apps, the statement:
... {File.Categories.Direct} ...
produces the categories I've assigned to the file(s), each separated with a semicolon ( ; ).  But, I would prefer, instead, to have each and every category be enumerated on a new line. 

I tried the |replace: formatting argument.  But, that didn't work.  So, what is the correct syntax? 

Mario

|replace:~;==BLA

Goto replace:This==That
It has this example and also a big blue box explaining how ; can be replaced with something else and why a ~ must be used.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

JohnZeman

Darius if it helps you any, here is the line in my file window tip configuration that shows the hierarchal keywords assigned to an image one line at a time.

<Run Foreground='#cccccc' FontWeight='Normal' FontSize='14'>Hierarchal Keywords:</Run><LineBreak/>{File.MD.XMP::Lightroom\hierarchicalSubject\HierarchicalSubject\0|replace:~;==XXX;pereplace:XXX==<LineBreak/>}

Mario

And there is also a very related example in the IMatch knowledge-base Fun With Custom File Window Layouts
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968