Find/replace newline
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 10
- Joined: Wed Feb 03, 2016 1:36 am
Find/replace newline
I am trying to remove extra spaces at the beginning and end of <codeblock> elements in DITA files. For example:
<codeblock>
codeExample ce = new codeExample();
ce.someFunction();
</codeblock>
should be
<codeblock>codeExample ce = new codeExample();
ce.someFunction();</codeblock>
I'm having trouble accomplishing this with the Find/Replace in Files dialog. Any tips?
<codeblock>
codeExample ce = new codeExample();
ce.someFunction();
</codeblock>
should be
<codeblock>codeExample ce = new codeExample();
ce.someFunction();</codeblock>
I'm having trouble accomplishing this with the Find/Replace in Files dialog. Any tips?
-
- Posts: 9470
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Find/replace newline
Hi,
With the "Regular Expressions" checkbox checked you can search for something like <codeblock>[\n\r\s]+ and replace with something like <codeblock>.
Our "Replace All" functionality allows you to preview the changes before applying them.
Regards,
Radu
With the "Regular Expressions" checkbox checked you can search for something like <codeblock>[\n\r\s]+ and replace with something like <codeblock>.
Our "Replace All" functionality allows you to preview the changes before applying them.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service