eolext LF CRLF surprises.
Martin Geisler
mg at aragost.com
Wed Aug 31 08:05:36 UTC 2011
Tom Udale <tom at ionoptix.com> writes:
Hi Tom,
>> You should publish it somewhere, for example on Bitbucket.
>
> Ok, I pushed my whole hg repo with the eol changes onto a "myhg" repo
> on my shiny new TomUdale Bitbucket account.
Here, in other words:
https://bitbucket.org/TomUdale/myhg/
> I am afraid I had a bit of a losing battle trying to get
>
> hg help eol
>
> to print out things as I wanted. I was trying to make a little table
> and it (ironically enough) refused to put newlines where I wanted when
> printing things out.
>
> I cannot for the life of me figure out how that little section
> "Example versioned ".hgeol" file:" ends up nicely formatted instead of
> all on one line. I had to put extra newlines to get some semblance of
> form (grrrr).
>
> So please forgive me that wonky bit.
No problem -- the trick is that "::" at the end of a line turns the next
block of text into a "literal block" with preformatted text. The "::" is
in turn replaced with ":" in the output.
The format of the help text is reStructuredText. There is documentation
online:
http://mercurial.selenic.com/wiki/HelpStyleGuide
http://docutils.sourceforge.net/rst.html
--
Martin Geisler
aragost Trifork
Professional Mercurial support
http://mercurial.aragost.com/kick-start/
More information about the Mercurial
mailing list