From: Junio C Hamano Date: Sun, 24 Sep 2006 10:34:31 GMT Subject: Re: [RFC/PATCH] gitweb: Add committags support Message-ID: <7vy7s9bljc.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Jakub Narebski writes: > Don't forget about final s,\n,
\n,gm if we parse it as a whole, > and not line by line. Yes, the driver and individual tag markers need to have a convention on who is responsible for doing
. One reasonable convention would be to make the driver side responsible for taking \n and turns it into
in plain strings, and make the tag markers responsible for doing so in their marked-up output. For example, when bugzilla_tagger is annotating this commit message: This rewrites frotz() routine to work around Bug #22574. The fix was confirmed by Xyzzy. Thanks for everybody who helped with this rewrite. it would match with a regexp /\b(?i:bug)\s*#?(\d+)/s to pick up "Bug\n#22574", extract 22574, and produce: ('This rewrites frotz() routine to work around ', \'Bug
#22574
', '. The fix was confirmed by Xyzzy.\n\nThanks for everybody...')