Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

TYPOSCRIPT stdWrap.replacement I Want to replace space with underscore _

My typo3 version is 10.4.22

lib.spaces = TEXT
lib.spaces {
   current = 1
   stdWrap.replacement {
       10 {
           search = 
           replace = _
           wrap = |
       }
   }
}

I have a following typoscript. And now my question is, what i have to write in search = ?
so that space is being searched and replace with underscore.

SORRY For my bad english!

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

replacement.search has stdWrap, so you can use char. The ascii code for space is 32, so that will make it:

lib.spaces = TEXT
lib.spaces {
   current = 1
   stdWrap.replacement {
       10 {
           search.char = 32
           replace = _
           wrap = |
       }
   }
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading