[TWN team] Script to automatically number the references

Lunar lunar at torproject.org
Thu Sep 12 10:17:38 UTC 2013


Hi!

I am not sure we're handling the references the easiest way right now,
but for the latest edition I wrote a little Ruby script to make it
easier.

Example:

$ ./numerize.rb <<EOF
I like references [XXX] so much you would not believe it [XXX]!

  [XXX] http://example.org/
  [XXX] http://example.com/
EOF
I like references [1] so much you would not believe it [2]!

   [1] http://example.org/
   [2] http://example.com/

See attachment.

-- 
Lunar                                             <lunar at torproject.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: numerize.rb
Type: application/x-ruby
Size: 565 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/news-team/attachments/20130912/c5a95399/attachment.rb>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.torproject.org/pipermail/news-team/attachments/20130912/c5a95399/attachment.sig>


More information about the news-team mailing list