Thread: Removing Line breaks
-
January 18th, 2014, 11:23 #1
- Join Date
- Feb 2009
- Location
- USA Eastern Time Zone (GMT -5/-4)
- Posts
- 2,479
- Blog Entries
- 1
Removing Line breaks
After spending hours manually removing line breaks and trying a bunch of find and replace tips for microsoft word that didn't work I have found the perfect tool.
https://www.textfixer.com/tools/remove-line-breaks.php
Writer for Just Insert Imagination and co-host of the Wild Die Podcast.
Find me on G+ to get in on one-shots, check out my YouTube and Twitch channel and follow me on Twitter @Mask_of_Winter
-
January 18th, 2014, 16:30 #2
Removing line breaks is simple, for example Notepad++ does this in one command.
The trick is usually to handle too little or too many spaces with new/end lines, and to preserve paragraphs (which Textfitter doesn't do, even if it says it does). Most texts and formats are different, so you need to tailor the tool used.
And of course, the ultimate tool is regular expression. Complex of course, but somewhat simple (RTFM obligatory of course) just to remove line breaks. Any decent word processor (like LibreOffice) or text program (like Notepad++) handle regexp in search&replace. Some have more user friendly tools, more limited of course but for example again with Notepad++ its Edit menu has: change upper to lower case and vice versa, merge&joins lines with several options for handling non empty lines (like with spaces), removing spaces before and or after lines, etc. All with keyboard shortcut, to do this fast to the current or selected text.Last edited by Blacky; January 18th, 2014 at 16:36.
Weekly Hurlements virtual tabletop rpg on TousRôlistes.fr
-
January 18th, 2014, 18:24 #3
I use that too. I think I saw it in a tut video for FG.
I never claimed to be sane. Besides, it's more fun this way.
-
January 19th, 2014, 09:45 #4
Here's a handy one liner for Perl which will remove all line breaks from a file:
Code:perl -p -i -e 's/\r\n$/\s/g' file1.txt
FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
January 19th, 2014, 10:53 #5
- Join Date
- Feb 2009
- Location
- USA Eastern Time Zone (GMT -5/-4)
- Posts
- 2,479
- Blog Entries
- 1
Writer for Just Insert Imagination and co-host of the Wild Die Podcast.
Find me on G+ to get in on one-shots, check out my YouTube and Twitch channel and follow me on Twitter @Mask_of_Winter
-
January 19th, 2014, 11:15 #6
you need to install perl.
https://www.perl.org/
Id try the notepad++ options as something with a more familiar feel...
-
January 19th, 2014, 16:42 #7
- Join Date
- Jul 2010
- Location
- Vendsyssel (Denmark)
- Posts
- 886
Hey, that is a useful link to know about Mask of Winter. Thanks!
Vires Animi
-
January 20th, 2014, 15:28 #8
The link provided in the OP is useful.
As mentioned above - Notepad++ does this in one command "Join Lines" which is CTRL+J. There are other very useful text formatting commands available under the "Edit" menu in Notepad++ too.Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
January 20th, 2014, 18:05 #9
Trenloe has this innate ability to make me feel like a complete idiot at times. It's mostly due to my own laziness, but still. I've been using Notepad++ for a while now and never knew about Ctrl+J or half of the options in the Edit menu...
Thank you very much.I never claimed to be sane. Besides, it's more fun this way.
-
January 20th, 2014, 18:23 #10
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,538
CTRL+J is also partially supported within FG in the string field and formatted text field types. Currently, it only joins the current line to the following line, not the entire selection.
Cheers,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks