I have an order form on an Excel worksheet. The values in some of the cells must be very specific values in order for other functions to work right.
I'm not sure how it happened, but at least two of the cells had what looked to be simply a trailing space after the value. It turns out that the problem was that the text had hidden <p> tags wrapped around them.
The Trim function doesn't fix it. What would get rid of the <p> tags and presumably any other hidden HTML in an Excel cell?
Related
How to convert HTML into formatted Text, so that the layout such as spacing, table borders, element positioning remains intact? Is there any tool for the same?
Tried a few options already as follows but output formatting is not as desired:
TxtControl conversion
PythonCom conversion
Issue: Converting HTML table with spacing between cells resulting in cell content getting moved to next line hence disturbing the formatting.
Expected output is: Table row cell content shall be in the same line and border shall be intact in the text file.
Also, PDF/RTF to TEXT conversion will also work just formatting should be intact.
Attaching screenshots for more clarity on the requirement.
INPUT HTML SCREENSHOT
OUTPUT TEXT SCREENSHOT
Alternatively, is there any way to read HTML character by character and write into text file so that the layout does not change in text output.
Does this work?
You can convert HTML into BBCode and you have a RTF editor.
http://www.ecardmax.com/hoteditor/
Just make sure to check the HTML Checkbox so that you can insert HTML into that. So when you paste your text, you choose the HTML part, you should try both.
Here are the results of the post from yours in BBCode
Note that that is my edited version:
How to [B]convert[/B] HTML into formatted Text, so that the layout such as spacing, table borders, element positioning remains intact? Is there any tool for the same?
Tried a few options already as follows but output formatting is not as desired:
[LIST=1]
[*]TxtControl conversion
[*]PythonCom conversion[/LIST]
[B]Issue:[/B] Converting HTML table with spacing between cells resulting in cell content getting moved to next line hence disturbing the formatting.Expected output is : Table row cell content shall be in same line and border shall be intact in text file.
Also, PDF/RTF to TEXT conversion will also work just formatting should be intact.
It could be that you manually need to remove something from it, as example I had to remove the text called "Thanks for your edit!" that appears when you edit something and it's still in pending.
This is useful if you want to convert old posts you can't access anymore on XenForo.
You then could put it into a text replacer, where it could replace [B] into **
While making a table in html, I can format the text of the whole table by putting some style values inside the "table" tag, and I can format a row by putting style values in the "tr" tag. Some values that work this way are "font-family," "font-size," and "color." However, other values do not work this way, e.g. "text-align." If I want to align the text inside the cells, I have to put the "text-align" value in each "td" tag.
Is there a way to format the text inside all the cells by entering the "text-align" value just one time?
I cannot use CSS, because the hosting website does not allow it (it is a wordpress.com blog).
So this is the situation:
I have a Google Spreadsheet with an attached Google Apps Script.
Based on data in the spreadsheet I want to create a document that can be printed onto label stickers. In other words, I have to create an m×n matrix of elements that are of a fixed size (w×h mm). I'd much prefer to be able to do all operations in the web browser, and I can't really see why this should not be possible, but none of the options I have tried so far have resulted in a document where I have the necessary level of layout control:
Creating a Spreadsheet where each cell contains the text for a label.
However, I can only set the cell height and width in pixels, not in
millimetres, and on printing margins that I cannot control are added to the document. (And, in order to limit the display
of the cell contents in the vertical direction I have to do a strange
workaround by merging my cell with the cell below it. What’s with
that?)
Creating a Document with a table where each cell contains the
text for a label. In this case I can set the minimum height of a
cell, but I cannot limit the maximum height. If it were possible to detect the current height of a table cell, I could truncate strings that overflow the cell, but this information is not available. Alternatively, if I could modify the underlying HTML representation of the document I could modify the relevant attributes, but this is not possible either.
Creating an HTML document
with a table where each cell contains the text for a label. In this
case I can directly set the width and height of the cell and use the
overflow attribute to restrict the contents to the given extents.
However, I cannot create an HTML file in my Docs area, so instead I tried to use a
ModelessDialog to contain my table. This sort of works in that in
Firefox and Safari (though not in Google Chrome!) I can print out
the table, but only the first page of it. This is due to the body
of the HTML automatically getting wrapped in a
<div id="guest" style="height:100%; overflow: auto">
and I have not figured out a way of getting rid of this.
Does anyone have a suggestion for how to achieve what I want?
Our web application shows URLs in a table. For most of our users, these urls all start with the same elements, and end differently.
The URLs are often too long to be displayed completely in a table cell, so we use this:
white-space: nowrap;
The problem is that this truncates the content at the "end" of the string. Since the begining is the same the table is a bit useless because all cells have the same content.
Is there a way with CSS to specificy that the begining of the string should be replaced by an ellipsis, not the end?
I am having issues wrapping some words in the item list.
I have converted item list into XSLT page. Tried setting column width to some value but it gets overridden and stretched out as cells contain some long words without spaces. I tried adding word-wrap: break-word; as inline styling, but it is instantly marked red with message:
This property is marked invalid because it's not supported by the
current schema.
If I save the page anyways it works how it's supposed to work, but if I navigate somewhere else from current list, everything resets and I am back to square one.
How do I fix this? Is there some global CSS which would enable the use of word-wrap? In essence, I want word wrapping in cells of standard view. Even of long space-less words.