groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Question about .substring


From: Steffen Nurpmeso
Subject: Re: [Groff] Question about .substring
Date: Wed, 19 Nov 2014 17:42:33 +0100
User-agent: s-nail v14.7.8-72-gb9e3dff

Tadziu Hoffmann <address@hidden> wrote:
 |> Hello: this is a bug?
 |[snip]
 |
 |Where do you see a bug?
 |
 |man 7 groff:
 |
 |  .substring xx n1 n2
 |    Replace the string named xx with the substring defined by
 |    the indices n1 and n2.
 |
 |groff:
 |
 |    .ds x abc
 |    .substring x 0 1
 |    .tm \*x
 |--> ab
 |    .ds x abc
 |    .substring x 0 0
 |    .tm \*x
 |--> a

Hm, i now recognize the word indices.  And have seen
a documentation improvement commit as well as a thread back from
2002-07.
My fault, usually this is index:length not
index:inclusive-index-of-substring.
Sorry.. and thanks,

--steffen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]