Drupal views strip HTML - Paragraphs sticking together - drupal

I'm using Drupal 6 and Views 2 to display titles and a summary of the body of some content. I wanted to strip out the HTML so that tables and images etc don't display in the node summary. It is preferable in this situation to trim the body rather than use the 'teaser'.
However, when paragraph and line break HTML is removed, the sentences get 'stuck together' - for example:
This is a paragraph. It has two sentences.
This is a second paragraph.
Becomes...
This is a paragraph. It has two sentences.This is a second paragraph.
There is no space after the second period. How can I strip out the HTML but somehow insert spaces in these situations (or achieve a similar result)?

Click on the field under 'Fields header' eg node:body body and there you will find 'strip HTML' right below trim option. Check that option and you will get desired result.

Related

Remove ant table header for a single column

I want to use example like this (from ant website) https://codesandbox.io/s/yw2y55?file=/demo.js:134-229,
but I need to remove what is 'Action' header here. Not just remove the word (which is easily done by leaving 'title' property empty), but I want that last column to be visible just where the data is, i.e. in data rows. Up in header, when you scroll it horizontally, I want other (scrolled) headers to be visible in place of the last header.
If I set 'display:none' in the browser inspector for the last column header, I get the desired behaviour pretty much, but how can I code this?
Ant-wise or maybe some custom css way?

Hide a given combining character from HTML

I have HTML that contains text with accent marks (U+0301 - a combining character) to denote stress. I'd like to be able to show and hide the accents with a checkbox. Some of the HTML is dynamically generated.
Is there a way to do this with CSS only? (no JavaScript and no enclosing all occurrences of U+0301 in tags)
One idea I tried was to use a custom font that renders U+0301 as an empty glyph - it does hide U+0301 in isolation, but fails to hide it when it's combined with another character.

How to reduce the space between two words. My JSP looks like this sortby: Date.I want to reduce the space between sortby: Date

how can we reduce the space between the word in UI page.
I have multiple words and all are in the random location.I want to place those words properly
using css , assign word-spacing: 1px;or letter-spacing: 1px;value is according to your convinience. assign this code to the div or tag you want to reduce the space b/w words
here in your question sortby: date is there simply remove space b/w colon and date or use <pre></pre> tag in your html code to display the text as u want as if we want to add space browser show only one space but with pre tag we can give as much space as we want similarly can reduce space

ASP.NET drowdownlist item text preceding blank space is not rendered

I need to indent some dropdownlist item texts to right based upon a condition. For this I simply add blank space to the left of those item text, however they don't get rendered and the texts get trimmed. Here's what I've tried so far:
Left padded certain texts right in the database (the dropdown list is populated from database)
item.Text=" "+item.Text;
item.Text=" "+item.Text;
None of the above methods work. What is the proper way of doing this? I don't want to go CSS.
Here is the jsfiddle
I think this is more a HTML then ASP.NET issue. In HTML spaces are trimmed between elements. The spec determined that 'non-significant' whitespace must be removed.
You have to use to make a 'significant' whitespace which will be rendered when at the start or end of an element.

XHTML - How can I make a piece of text drop on to a new line or wrap without putting a space in it?

I have a small space in which I would like to put writing. Problem is, if a long word is inputted, it flows off the side because there is no space.
I could do overflow:hidden, but this isn't what I am looking for. Ideally I would like the word to drop to a new line with a - before it.
The word is on a line of its own to begin with so a <br/> will not fix the problem.
word-wrap:break-word in CSS does this (ok, without the - in the newline), but it had some browser issues back when I tried it, so be careful ;).
Second solution is wrapping letters in text (or packets of 3 or 5 letters etc.)in <span></span> so that they'll wrap but have no spaces when fitting the line.
to add the hyphen You could then use jquery and search for elements having certain left offset to prepend hyphens.

Resources