Обсуждение: Forcing wrapping of 'pre' text in the archives

Поиск
Список
Период
Сортировка

Forcing wrapping of 'pre' text in the archives

От
Selena Deckelmann
Дата:
Can we add something like below to the postgresql.org stylesheet get
the archives 'pre' content to wrap properly?

pre {white-space: pre-wrap;       /* css-3 */white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999
*/white-space:-pre-wrap;      /* Opera 4-6 */white-space: -o-pre-wrap;    /* Opera 7 */word-wrap: break-word;       /*
InternetExplorer 5.5+ */
 
}

-- 
http://chesnok.com/daily - me
http://endpoint.com - work


Re: Forcing wrapping of 'pre' text in the archives

От
Selena Deckelmann
Дата:
Hi!

On Mon, Sep 14, 2009 at 8:02 AM, Selena Deckelmann
<selenamarie@gmail.com> wrote:
> Can we add something like below to the postgresql.org stylesheet get
> the archives 'pre' content to wrap properly?
>
> pre {
>  white-space: pre-wrap;       /* css-3 */
>  white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
>  white-space: -pre-wrap;      /* Opera 4-6 */
>  white-space: -o-pre-wrap;    /* Opera 7 */
>  word-wrap: break-word;       /* Internet Explorer 5.5+ */
> }

Just poking again to see if Alvaro has had a chance to check this out...

-selena



--
http://chesnok.com/daily - me
http://endpoint.com - work


Re: Forcing wrapping of 'pre' text in the archives

От
Alvaro Herrera
Дата:
Selena Deckelmann escribió:
> Hi!
> 
> On Mon, Sep 14, 2009 at 8:02 AM, Selena Deckelmann
> <selenamarie@gmail.com> wrote:
> > Can we add something like below to the postgresql.org stylesheet get
> > the archives 'pre' content to wrap properly?
> >
> > pre {
> >  white-space: pre-wrap;       /* css-3 */
> >  white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
> >  white-space: -pre-wrap;      /* Opera 4-6 */
> >  white-space: -o-pre-wrap;    /* Opera 7 */
> >  word-wrap: break-word;       /* Internet Explorer 5.5+ */
> > }
> 
> Just poking again to see if Alvaro has had a chance to check this out...

Sorry for the delay.  I was away from home which is where my test
installation is.

Now, I don't know enough about this stuff to make it work on my test
installation.  I tried some simple variations but they don't seem to
work.  Right now the applicable CSS file already has a text wrap block:

#txtArchives a:visited  { color:#00536E; text-decoration: underline; }
#txtArchives pre        { word-wrap: break-word; font-size: 150%; }
#txtArchives tt         { word-wrap: break-word; font-size: 150%; }

I tried removing the second line and replacing it with this block:

#txtArchives pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */font-size: 150%;
}

but it doesn't seem to have any effect on my browser.  I am trying this
email:
/pgsql-hackers/2009-05/msg01512.php


-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


Re: Forcing wrapping of 'pre' text in the archives

От
Alvaro Herrera
Дата:
Alvaro Herrera escribió:

> I tried removing the second line and replacing it with this block:
> 
> #txtArchives pre {
>  white-space: pre-wrap;       /* css-3 */
>  white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
>  white-space: -pre-wrap;      /* Opera 4-6 */
>  white-space: -o-pre-wrap;    /* Opera 7 */
>  word-wrap: break-word;       /* Internet Explorer 5.5+ */
>  font-size: 150%;
> }
> 
> but it doesn't seem to have any effect on my browser.  I am trying this
> email:
> /pgsql-hackers/2009-05/msg01512.php

FWIW the file I'm modifying is text.css, and the <pre> block is inside
<div id="txtArchives">.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


Re: Forcing wrapping of 'pre' text in the archives

От
Selena Deckelmann
Дата:
On Mon, Sep 28, 2009 at 11:12 AM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> Alvaro Herrera escribió:
>
>> I tried removing the second line and replacing it with this block:
>>
>> #txtArchives pre {
>>  white-space: pre-wrap;       /* css-3 */
>>  white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
>>  white-space: -pre-wrap;      /* Opera 4-6 */
>>  white-space: -o-pre-wrap;    /* Opera 7 */
>>  word-wrap: break-word;       /* Internet Explorer 5.5+ */
>>  font-size: 150%;
>> }
>>
>> but it doesn't seem to have any effect on my browser.  I am trying this
>> email:
>> /pgsql-hackers/2009-05/msg01512.php
>
> FWIW the file I'm modifying is text.css, and the <pre> block is inside
> <div id="txtArchives">.

Which browser? (I'm just waiting for you to say IE 4 or something)

And for future reference:

I found this too:
_white-space: pre;   /* IE only hack to re-specify in addition to word-wrap  */

Here's perhaps a more authoritative source:

https://developer.mozilla.org/en/CSS/white-space

-selena


--
http://chesnok.com/daily - me
http://endpoint.com - work


Re: Forcing wrapping of 'pre' text in the archives

От
Alvaro Herrera
Дата:
Selena Deckelmann escribió:
> On Mon, Sep 28, 2009 at 11:12 AM, Alvaro Herrera
> <alvherre@commandprompt.com> wrote:

> >> but it doesn't seem to have any effect on my browser.  I am trying this
> >> email:
> >> /pgsql-hackers/2009-05/msg01512.php
> >
> > FWIW the file I'm modifying is text.css, and the <pre> block is inside
> > <div id="txtArchives">.
> 
> Which browser? (I'm just waiting for you to say IE 4 or something)

Epiphany, the Gecko-based version.  It's 2.26.3 (Gecko 1.9); not that
old, I'd say.

> And for future reference:
> 
> I found this too:
> 
>  _white-space: pre;   /* IE only hack to re-specify in addition to word-wrap  */

Wow, that's obscure.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.