![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Ed Mullen wrote: Samuel Murray wrote: I'm trying to use HTML as an intermediary format to convert CSV to a word processing format. But let me worry about that... I'm confused and curious. Me, too. As for CSV conversion, what's the problem? I can open a .csv file in Word 2000 directly Why the OP wants to use HTML for this is a bit baffling. |
#12
| |||
| |||
|
|
Neredbojias wrote: On 02 Sep 2008, Samuel Murray <leuce (AT) absamail (DOT) co.za> wrote: I'm trying to find out if there is a way (perhaps using CSS) to let this code: table><tr><td>One Two Three</td></tr></table display the same as if the code would have been: table><tr><td>One<br Two<br Three</td></tr></table Look into the html <pre> attribute. PRE> isn't an attribute; it's an element. |
|
A <PRE> block inside the <TD> is not the same as inserting <BR elements. Some elements which may be children of <TD> may not be children of <PRE>. User agents may, and often do, apply formatting rules to text within a <PRE> block that they don't apply (under the default styles) to text within <TD>, such as using a monospaced typeface. In short, this suggestion doesn't do what the OP asked for. Whether it does what the OP *wants* is another question; and the OP might have some success using <PRE> plus additional styling to render the text in a more appropriate manner. (That assumes he doesn't need any of the elements that <PRE> excludes, such as <IMG>, inline in his TD>s.) If Ben's suggestion of "white-space: pre-wrap" won't work, for example, something like the following might provide the basic feature with better styling under capable user agents and graceful degredation under others: td pre { font-family: inherit; white-space: pre-line; } table tr><td><pre One Two Three /pre></td></tr /table "pre-line" seems to me closer to the OP's original request than Ben's suggestion of "pre-wrap", since the former collapses whitespace. Obviously the font styling might have to be changed, depending on how TD> is styled. "font-family: inherit" works with FF2, but not with IE7, so "font-family: serif" (or whatever) might be a better choice. Unfortunately, none of the UAs I tried (FF2, IE7, oOO Writer 2.4) appear to actually support "white-space: pre-line", so to get this to render the way I think the OP wants it, you'd have to get rid of the extra whitespace inside the <PRE> block. But this combination does preserve the line breaks and it does degrade gracefully; in particular, oOO Writer will preserve the line breaks, which I gather the OP wanted. And the line breaks will be preserved even if CSS is disabled or overridden, which is probably desirable. |
#13
| |||
| |||
|
|
You've obviously put some thought into this, which is quite laudible in some dimensions. However, if Jukka ever snuck into dorayme's bedroom, you'd be the one result that wouldn't particularly surprise me. |
#14
| |||
| |||
|
|
On 03 Sep 2008, Michael Wojcik <mwojcik (AT) newsguy (DOT) com> wrote: PRE> isn't an attribute; it's an element. Oh yeah? What's its atomic number? |
#15
| |||
| |||
|
|
Neredbojias wrote: On 03 Sep 2008, Michael Wojcik <mwojcik (AT) newsguy (DOT) com> wrote: PRE> isn't an attribute; it's an element. Oh yeah? What's its atomic number? It's one lower than that of postium. |
|
And instant postium is an isotope. |
#16
| |||
| |||
|
|
On 2008-09-04, Blinky the Shark wrote: Neredbojias wrote: On 03 Sep 2008, Michael Wojcik <mwojcik (AT) newsguy (DOT) com> wrote: PRE> isn't an attribute; it's an element. Oh yeah? What's its atomic number? It's one lower than that of postium. And much higher than top-postium! And instant postium is an isotope. That's when a standards organization drinks too much (does that explain OOXML?). |
#17
| |||
| |||
|
|
In article <Xns9B0EBB0CCE109neredbojiasnano (AT) 194 (DOT) 177.96.78>, Neredbojias <neredbojias (AT) gmail (DOT) com> wrote: You've obviously put some thought into this, which is quite laudible in some dimensions. However, if Jukka ever snuck into dorayme's bedroom, you'd be the one result that wouldn't particularly surprise me. There is a double counterfactual here and you have almost everything about both the antecedents and the consequents wrong. That, of course, is not surprising with your mangled neanderthalic methods of reasoning. |
|
First, I do not have a bedroom. I am not that sort of being. |
|
Second if I did and your Finnish mate wandered in, it would only be because he had finally hunted down a disgusting coward or he had been cunningly lured there bu my own team that is out hunting him down. One thing for sure is that Interplan (the inter-planetary police force) would soon be investigating a murder case. |
#18
| |||
| |||
|
|
Neredbojias wrote: On 03 Sep 2008, Michael Wojcik <mwojcik (AT) newsguy (DOT) com> wrote: PRE> isn't an attribute; it's an element. Oh yeah? What's its atomic number? It's one lower than that of postium. And instant postium is an isotope. |
|
Whoosh Prevention: http://jeffwerner.ca/2004/12/postum_coffee_s.html |
#19
| |||
| |||
|
|
On 03 Sep 2008, Blinky the Shark <no.spam (AT) box (DOT) invalid> wrote: Neredbojias wrote: On 03 Sep 2008, Michael Wojcik <mwojcik (AT) newsguy (DOT) com> wrote: PRE> isn't an attribute; it's an element. Oh yeah? What's its atomic number? It's one lower than that of postium. And instant postium is an isotope. Isotopic variation does not change an element but it could make it horny. Whoosh Prevention: http://jeffwerner.ca/2004/12/postum_coffee_s.html Ahh, without caffeine it can't be worth a shit. |
#20
| |||
| |||
|
|
at 61 I'm young enough that I can stay awake without drugs." |
![]() |
| Thread Tools | |
| Display Modes | |
| |