FAQ Database Discussion Community


How can I use R and XLConnect to save XLSX spreadsheets WITHOUT wrapping text in cells?

r,excel,word-wrap,xlconnect
The XLConnect library in R allows reading and writing to Microsoft Excel XLSX spreadsheet files. However, when using writeWorksheet() or writeWorksheetToFile(), it automatically wraps the text in all cells. How do I turn off the text wrapping? Ideally, I'm looking for generating XLSX spreadsheets with no wrapped text and the...

How to prevent Asian characters from breaking lines by words

javascript,html,css,word-wrap
I'm currently working on an e-commerce website. After translated all products into Japanese, my customer asked to apply the following changes: By default, product name will be automatically wrapped like this: | あいうえおかきく けこさ | | しすせ | (I use "|" to show the border of element) As you see, the...

What's the difference between `word-break: break-all` and `word-wrap: break-word`? [duplicate]

css,css3,word-wrap,pre,word-break
This question already has an answer here: What is the difference between “word-break: break-all” versus “word-wrap: break-word” in CSS 7 answers I don't understand why there are two properties that seem to do the same thing, yet their interrelation does not appear to be defined within the spec. http://dev.w3.org/csswg/css-text-3/#word-break-property...

Wrap text in stretchable tables

html,css,css3,flexbox,word-wrap
I have two tables on either side of a centered div. I'd like the content in the left-hand table to be aligned on the right, and the content in the right-hand table to be aligned on the left. I managed to do so by creating an extra column in the...

h1 not wrapping when the window is resized, just disappearing

php,html,css,word-wrap,textwrapping
So I've been trying desperately to get my page title to overlay in the center of the header image, both horizontally and vertically, on my portfolio pages (here's a page with a longer title). I finally found a way to get the h1 title where I want it, but now...

IE10 flexbox and word-wrap not working when I resize

css,internet-explorer-10,flexbox,word-wrap
I am building a small css framework for mobile apps that i'll be releasing, but I don't understand why when I open the page in IE10 it seems all ok, but if I try to resize the page to a smaller size the text will lose it's wrap and display...

Word wrap not working on my UILabel

xcode,swift,constraints,word-wrap
My app uses a custom cell to display products in a tableview. The product name when used on an iPhone 5 was running off the end so I set it to wrap which doesn't work. Each cell is populated in my Customcell class using the code below, I've added a...

Wrap multiline string (preserving existing linebreaks) in Python?

python,string,word-wrap,textwrapping
Consider this example: import textwrap import pprint mystr=r""" First line. Second line. The third line is a very long line, which I would like to somehow wrap; wrap at 80 characters - or less, or more! ... can it really be done ??""" pprint.pprint(textwrap.wrap(mystr,80)) The string mystr is already a...

How can I wrap text in QGraphicsItem?

qt,text,word-wrap,qgraphicsitem
1) How can I wrap text in a QGraphicsTextItem to fit a fixed rectangle, with width and height ? Right now I am experimenting with creating a text, getting its bounding rectangle, and resizing it to fit the box - but I can't get wrapping. class TTT: public QGraphicsTextItem {...

How can I make a Sharepoint textbox (input, type=text) dynamically Multiline?

c#,jquery,html,multiline,word-wrap
I want a textbox on my Web Part that will grow vertically on demand. That is, it will be one line unless the user enters too much text for that line, at which point it word wraps and grows vertically to accommodate the verbosity of the user. I am creating...

Undocumented word-break: break-word CSS property?

css,safari,word-wrap
We want to avoid long words overflowing the line and let them be broken if they have to, for which the standard approach is word-wrap: break-word Or its equivalent overflow-wrap: break-word However, we found this not to work on Safari (including Mac and iOS). We then discovered by accident that...

When trying to get dynamically created UILabel to wrap, text disappears

xcode,swift,word-wrap,cgrect,sizetofit
I'm trying to display some description text that varies from a couple of words to a hundred words. I've set my UILabel to wrap to compensate using the code below descText.frame = CGRect(x: 115, y: 160, width: 465, height: 21) descText.textAlignment = NSTextAlignment.Left descText.numberOfLines = 0 descText.lineBreakMode = NSLineBreakMode.ByWordWrapping descText.sizeToFit()...

CSS - don't allow word to be sliced

css,word-wrap
For example I don't want that the word “Call” to be sliced in “Ca ll”, but I want to apply 'white-space:wrap;' //'float:left;' it place the text next to the image. <div style="float:left;"><img src="img.jpg" /></div> <div style="color:gray;word-wrap:normal;white-space: wrap;">Why my text is sli ced. </div> ...

How do I wrap text in a pre tag for Internet explorer?

html,css,internet-explorer,whitespace,word-wrap
I am using following code to wrap the <PRE> region in HTML: <PRE style = "white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"> It is working fine on chrome and Mozilla but the same is not working for IE. I am using IE9. Please tell me if any...