Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to search for Line Breaks, and or Carriage Returns in Quanta web editor.
Unfortunately I cannot get this to work
I am opening the Find Dialog (Ctrl-F), I tick the 'Regular Expressions' box, and enter something like:
[\n] (to search for line break). Have also tried:
[\r]
[\f]
and so forth, but no line breaks are detected in the target (html) text which obviously contains line breaks, carriage returns etc.
Any suggestions as to what could be wrong greatly appreciated. Ultimately I would like to replace
'<br> ---- line break ---- <br>'
with:
'</p><p align="left">'
Hi - I had a similar scenario. It took me a while to figure it out.
I copied a bunch of code (from Drupal CMS editor - so all html concatenated/without linebreaks)
I wanted to re-edit the code in Quanta, and to, for example, make line breaks before each HTML bullet point to make editing easier.
<li>one<li>two<li>three
to:
<li>one
<li>two
<li>>three
Method :Copy and paste into Quanta Place cursor at the start of the code.
Click Ctrl - R for Find and Replace
Text to find: <li>
Regular Expression - yes
Replacement text \n<li>
Use placeholders - yes
Options: From cursor
The problem I had at first was that the cursor, after pasting, was at the end of the text. After finding nothing, you're asked 'Continue from beginning' (yes) - but the Regular Expression does not work. Must be a bug. I hope this helps someone out.
Yes - Came across the solution after 5 years - or the program changed - I don't know which. I now have a new problem. I am trying to copy text from a PDF file (produced via windows/word and viewed through Okular) into a CMS (Drupal). I want to remove the line-breaks from the text. Find and replace with \n and \r does not seem to work here. Any solutions?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.