David Goldsmith | 6 Jun 00:43 2009
Picon

Tabs possible in ReSt?


Hi!  Newbie here.  Is there a way to enter tabs (or, equivalently, in-line non-consolidated white-space) in
ReSt?  I tried a number of different quoting strategies, to no avail.

DG

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
David Goodger | 6 Jun 02:04 2009

Re: Tabs possible in ReSt?

On Fri, Jun 5, 2009 at 18:43, David Goldsmith <d_l_goldsmith <at> yahoo.com> wrote:
> Hi!  Newbie here.  Is there a way to enter tabs (or,
> equivalently, in-line non-consolidated white-space) in
> ReSt?  I tried a number of different quoting strategies,
> to no avail.

    Spaces are recommended for indentation, but tabs may
    also be used. Tabs will be converted to spaces. Tab
    stops are at every 8th column.

http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#whitespace

What do you want to do with tabs?

--

-- 
David Goodger <http://python.net/~goodger>

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
d_l_goldsmith | 6 Jun 02:49 2009
Picon

Re: Tabs possible in ReSt?


--- On Fri, 6/5/09, David Goodger <goodger <at> python.org> wrote:

>     Spaces are recommended for indentation, but
> tabs may
>     also be used. Tabs will be converted to
> spaces. Tab
>     stops are at every 8th column.

How do you enter them?  I have five spaces in a row and they're being rendered as one space.

> What do you want to do with tabs?

Align text in left-justified columns in a situation where a full-on table would be excessive.  (See
http://docs.scipy.org/numpy/Milestones/ and find Financial Functions)

Thanks!

(A fellow) David G. :-)

> -- 
> David Goodger <http://python.net/~goodger>
>

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
(Continue reading)

David Goldsmith | 6 Jun 02:56 2009
Picon

Re: Tabs possible in ReSt?


Yes, I read that, but the tab key just takes me to the next field in my browser (Firefox), and multiple spaces
are rendered as a single space; I'm not being lazy (perhaps dense, but not lazy). :-)

DG

--- On Fri, 6/5/09, Ben Finney <ben+python <at> benfinney.id.au> wrote:

> From: Ben Finney <ben+python <at> benfinney.id.au>
> Subject: Re: Tabs possible in ReSt?
> To: "David Goldsmith" <d_l_goldsmith <at> yahoo.com>
> Cc: docutils-users <at> lists.sourceforge.net
> Date: Friday, June 5, 2009, 5:30 PM
> David Goldsmith <d_l_goldsmith <at> yahoo.com>
> writes:
> 
> > Hi! Newbie here. Is there a way to enter tabs (or,
> equivalently,
> > in-line non-consolidated white-space) in ReSt? I tried
> a number of
> > different quoting strategies, to no avail.
> 
> Did you try reading what the specification has to say?
> 
>     Spaces are recommended for indentation, but
> tabs may also be used.
>     Tabs will be converted to spaces. Tab stops
> are at every 8th column.
> 
>     Other whitespace characters (form feeds
(Continue reading)

Ben Finney | 6 Jun 02:30 2009
Picon

Re: Tabs possible in ReSt?

David Goldsmith <d_l_goldsmith <at> yahoo.com> writes:

> Hi! Newbie here. Is there a way to enter tabs (or, equivalently,
> in-line non-consolidated white-space) in ReSt? I tried a number of
> different quoting strategies, to no avail.

Did you try reading what the specification has to say?

    Spaces are recommended for indentation, but tabs may also be used.
    Tabs will be converted to spaces. Tab stops are at every 8th column.

    Other whitespace characters (form feeds [chr(12)] and vertical tabs
    [chr(11)]) are converted to single spaces before processing.

    <URL:http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#whitespace>

--

-- 
 \       “Remorse: Regret that one waited so long to do it.” —Henry L. |
  `\                                                           Mencken |
_o__)                                                                  |
Ben Finney <ben <at> benfinney.id.au>

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Docutils-users mailing list
(Continue reading)

David Goodger | 6 Jun 03:12 2009

Re: Tabs possible in ReSt?

On Fri, Jun 5, 2009 at 20:49,  <d_l_goldsmith <at> yahoo.com> wrote:
> I have five spaces in a row and they're being rendered as one space.

I see, you want multiple spaces in the HTML output. That's an HTML
rendering issue. HTML always collapses multiple spaces into one.

>> What do you want to do with tabs?
>
> Align text in left-justified columns in a situation where a full-on table would be excessive.

To play ASCII-art, you should use literal blocks. That means
monospaced type (Courier etc.).

You will never be able to align proportional-width text using spaces
or tabs. Show us what you're trying to do and we may be able to help.

> (See http://docs.scipy.org/numpy/Milestones/ and find Financial Functions)

What should I be looking for?

--

-- 
David Goodger <http://python.net/~goodger>

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
(Continue reading)

Ben Finney | 6 Jun 03:38 2009
Picon

Re: Tabs possible in ReSt?

David Goodger <goodger <at> python.org> writes:

> On Fri, Jun 5, 2009 at 20:49,  <d_l_goldsmith <at> yahoo.com> wrote:
> > I have five spaces in a row and they're being rendered as one space.
> 
> I see, you want multiple spaces in the HTML output. That's an HTML
> rendering issue. HTML always collapses multiple spaces into one.

To be clear, this means that no matter how much consecutive whitespace
there is in the HTML document, the standard requires all HTML renderers
to collapse it into a single space.

With one exception:

> To play ASCII-art, you should use literal blocks. That means
> monospaced type (Courier etc.).

Literal blocks from reST will be written as HTML ‘pre’ elements, which
the HTML standard specifies renderers to preserve any whitespace.

--

-- 
 \        “Consider the daffodil. And while you're doing that, I'll be |
  `\              over here, looking through your stuff.” —Jack Handey |
_o__)                                                                  |
Ben Finney <ben <at> benfinney.id.au>

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
(Continue reading)

Alan G Isaac | 6 Jun 04:24 2009
Picon

Re: Tabs possible in ReSt?

On 6/5/2009 8:04 PM David Goodger apparently wrote:
>     Spaces are recommended for indentation, but tabs may
>     also be used. Tabs will be converted to spaces. Tab
>     stops are at every 8th column.
> 
> http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#whitespace

Except in literal blocks. Which I think was once called a bug (?),
although I don't see it in known bugs.  Replacing the tabs in
literal blocks in accord with the tab-width option would be
helpful. Or, as discussed in the todo list, allowing a tab-width option
for the include directive.
http://docutils.sourceforge.net/docs/dev/todo.txt

Cheers,
Alan Isaac

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
David Goldsmith | 6 Jun 20:38 2009
Picon

Re: Tabs possible in ReSt?


In other words, what I want is not presently implemented in ReSt?

DG

--- On Fri, 6/5/09, Alan G Isaac <aisaac <at> american.edu> wrote:

> From: Alan G Isaac <aisaac <at> american.edu>
> Subject: Re: [Docutils-users] Tabs possible in ReSt?
> To: "docutils users" <docutils-users <at> lists.sourceforge.net>
> Date: Friday, June 5, 2009, 7:24 PM
> On 6/5/2009 8:04 PM David Goodger
> apparently wrote:
> >     Spaces are recommended for
> indentation, but tabs may
> >     also be used. Tabs will be
> converted to spaces. Tab
> >     stops are at every 8th
> column.
> > 
> > http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#whitespace
> 
> 
> Except in literal blocks. Which I think was once called a
> bug (?),
> although I don't see it in known bugs.  Replacing the
> tabs in
> literal blocks in accord with the tab-width option would
> be
> helpful. Or, as discussed in the todo list, allowing a
(Continue reading)

Ben Finney | 7 Jun 01:49 2009
Picon

Re: Tabs possible in ReSt?

David Goldsmith <d_l_goldsmith <at> yahoo.com> writes:

> In other words, what I want is not presently implemented in ReSt?

What you want is not clear. What is it you expect to happen? Please
show an example input and the expected output.

--

-- 
 \        “The number of UNIX installations has grown to 10, with more |
  `\         expected.” —Unix Programmer's Manual, 2nd Ed., 1972-06-12 |
_o__)                                                                  |
Ben Finney <ben <at> benfinney.id.au>

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Docutils-users mailing list
Docutils-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.

Gmane