Hallo all :),

Ingo Schwarze <schwa...@usta.de> wrote:
 |Tadziu Hoffmann wrote on Wed, Nov 19, 2014 at 05:20:54PM +0100:
 |> Steffen Nurpmeso wrote:
 |> [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.
 |
 |The wording could be improved.  As it stands, it is not clear
 |whether the character at index n2 is the last character included
 |or the first character not included.
 |
 |Maybe:
 |
 |  Replace the string named xx with its substring beginning with
 |  the zero-based index n1 and ending with index n2, inclusively.

Inclusive index n2 of the _resulting substring_, please.

For S-roff i will add a .substr request which takes an index and
a length.  (Just like perl(1), if length is negative, "leaves that
many characters off the end of the string".)

--steffen

Reply via email to