linebreaks

Importing txt files to excel makes linebreaks disappear

Hi everyone! I am trying to import a text file into excel (2007). The file was exported from a C# text box and it contains linebreaks. Although when I import it (with the text import wizard that comes with excel), the linebreaks disappears completely. I would prefer not to have to write a VBA file and place in an excel file to run but i...

How to use linebreaks in a textbox?

Hi, I am saving text from a textarea in the database and display it in another textarea. The linebreaks are displayed as \n which should be right, but the textarea is displaying them instead of doing the breaks! How can I fix this? ...

Change line break characters in HTML

In Firefox a '/' breaks a line, but in chrome the line continues. How can I tell chrome to allow a line break on '/'? This is a problem for the middle table on http://webnumbr.com/api ...

How to remove line breaks from a file in Java?

How can I replace all line breaks from a string in Java in such a way that will work on Windows and Linux (ie no OS specific problems of carriage return/line feed/new line etc.)? I've tried (note readFileAsString is a function that reads a text file into a String): String text = readFileAsString("textfile.txt"); text = text.r...

How to force a line break in the listitems of a dropdownlist?

I have a dropdownlist that I already have manually databinding. I currently get the data, loop through each item, and depending on values in the item, change the css for the individual ListItem. For example: foreach (Site mySite in myList) { ListItem li = new ListItem(mySite.FullAddress, mySite.Id.ToString()); ...

Latex Multiple Linebreaks

I use LaTeX to type up programming homeworks for classes. I need to do this: my line of text blah blah blah new line of text with blank line between I know I can use double slash to break lines \\, but LaTeX will only take the first line break (complains about more) and starts a new line, it produces this : my line of text blah bla...

How do you break long string lines in Scheme?

For example, I want to break the long string in the below panic statement: (panic "Truth-assignment length is longer than the number of propositions!") I have tried (panic "Truth-assignment length is longer than the number \ of propositions!") and (panic "Truth-assignment length is longer than the number of propositions!") and they both ...

How to use Emacs to write comments with proper indentation, line-length, and wrapping?

I'm tired of writing comments that look like this { # bla bla blabla bla blabla bla blabla # bla bla blabla bla blabla bla blabla bla blabla bla blabla bla bla # blaaa bla } I have to manually wrap the lines and take care of the # as well. How do emacs pros make the editor work for them? ...

javascript: replace linebreak

I'm having a string which contains a chr(13) as linebreak. How can i replace it with eg. <br>? I tried mystring.replace("\n","<br>"); but it didn't work Thanks in advance. ...

Which text editor to add line break (not word wrap) at same column throughout source code file?

I'm preparing some documentation and need to format my source code with line breaks that need to appear in column 70 throughout the file. The text editors I have only seem to have features to word wrap the source at this column. I'm wondering whether I need to do this manually since - because of the varying length of the last word at t...

side-by-side divs with form that should not break

I want to have several divs with content side-by-side like D1 D2 D3 D4 D5 D2 contains a form. Without the form it's working (using display:inline and such). There should be no line breaks in the resulting HTML as this is a page header. How can I accomplish that? UPDATE here's the actual code <div id="sep"> <img alt="separator" src...

How to add line break for UILabel?

Let see that I have a string look like this: NSString *longStr = @"AAAAA\nBBBBB\nCCCCC"; How do I make it so that the UILabel display the message like this AAAAA BBBBB CCCCC I dont think, '\n' recognize by UILabel, so is there anything that I can put inside NSString, so that UILabel know that it has to create a line ...

CScript and VBS to Remove Line Breaks from Text File

I have a batch file running which spits out a text/html file. The batch file is causing some line breaks in the text file, which do not translate very well in opening the file in an email. I have been trying to read up on CScript to create a vbs script that can read the text file and strip out the line breaks but have had no luck. Any...

line break within Html.Encode & String.Join

I have the following line of code. <%= Html.Encode(string.Join(", ", item.company1.companies.Select(x => x.company_name).ToArray())) %> Would it be possible to somehow replace the comma with a line break? ...

vim: showing listchars changes the screen wrapping

I noted that when I show up the EOL listchars in a text the linebreaks are losen p.e. this is my text of this message becomes after set list ..eol this is my text of this mess age(EOL CHAR) I would like to see the EOL characters without breaking the words at window border. Is that possible? ...

Automatic linebreak in WPF label

Dear all, is it possible for a WPF Label to split itself automatically into several lines? In my following example, the text is cropped at the right. <Window x:Class="..." xmlns="..." xmlns:x="..." Height="300" Width="300"> <Grid> <Label> `_Twas brillig, and the slithy toves did gyre and gimble in the wabe: ...

Doctrine: textarea line breaks & nl2br

Hi, I'm pulling my hair out with something that should be very simple: getting line breaks to show up properly in text that's returned from the database with Doctrine 1.2 I'm saving a message: $body = [text from a form textarea]; $m = new Message(); $m->setSubject($subject); $m->setBody($body); $m->save(); Query...

Rails - strip xml import from whitespace and line break

Hey folks, I am stuck with something quite simple but really annoying: I have an xml file with one node, where the content includes line breaks and whitspaces. Sadly I can't change the xml. <?xml version="1.0" encoding="utf-8" ?> <ProductFeed> ACME Ltd. Fooproduct Foo Root :: Bar Category I get to the nod...

jQuery regex over multiple lines

I have the following string: <img alt="over 40 world famous brandedWATCHES BRANDs to choose from " src="http://www.fastblings.com/images/logo.jpg"&gt;&lt;/strong&gt;&lt;/a&gt;&lt;br&gt; I want to define a regex pattern like <img alt="(.+?)" src="http://(.+?).(jpg|gif)"&gt;, but as you can see the target string has a linebreak in the a...

Using UNIX linebreaks in Windows Ruby

Is it possible to tell Ruby in Windows to use only \n instead of r\n? I'm having an issue where a file is being saved with \r\n and it is causing it to not function properly. Is there a setting somewhere I can change to fix this? ...