Skip to contentSkip to conversation

Documentation/Notes: Remove 'footnote:' warning

PATCH In review Pavan Kumar Sunkara 4 participants 10 messages Jun 15, 2016 1 message not in the archive Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation/Notes: Remove 'footnote:' warning

Remove 'footnote:' from git-notes.txt which is responsible for the warnings surfacing during the generation of git documentation.

---
 Documentation/git-notes.txt |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
Documentation/git-notes.txt +5 -4
index 6a187f2..2a18894 100644
@@ -210,10 +210,11 @@ Commit notes are blobs containing extra information about an object
 are taken from notes refs.  A notes ref is usually a branch which
 contains "files" whose paths are the object names for the objects
 they describe, with some directory separators included for performance
-reasons footnote:[Permitted pathnames have the form
-'ab'`/`'cd'`/`'ef'`/`'...'`/`'abcdef...': a sequence of directory
-names of two hexadecimal digits each followed by a filename with the
-rest of the object ID.].
+reasons.
+
+Permitted pathnames have the form 'ab'`/`'cd'`/`'ef'`/`'...'`/`'abcdef...':
+a sequence of directory names of two hexadecimal digits each
+followed by a filename with the rest of the object ID.
 
 Every notes change creates a new commit at the specified notes ref.
 You can therefore inspect the history of the notes by invoking, e.g.,
Signature · 1 line
1.7.6.485.gad3dc
#1 lore raw
Quoted 4 lines · Pavan Kumar Sunkara

Remove 'footnote:' from git-notes.txt which is responsible for the warnings surfacing during the generation of git documentation.
---

What version of asciidoc are you using? Perhaps that works just fine with newer versions?

Signature · 4 lines
-Drew Northup
________________________________________________
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59
#2 lore raw

Hi,

Quoted 8 lines · Drew Northup
Quoted 3 lines · Pavan Kumar Sunkara

Remove 'footnote:' from git-notes.txt which is responsible for the warnings surfacing during the generation of git documentation.

What version of asciidoc are you using? Perhaps that works just fine with newer versions?

Good call. This was fixed by Docbook XSL 1.76.0:

Norman Walsh: block.xsl; endnotes.xsl

Fix bug where simpara in footnote didn't work.

The symptoms are a warning and a little extra vertical space after the numberal "1." in the output. I don't know if it is worth working around or not.

#3 lore raw
Quoted 14 lines · Jonathan Nieder

Hi,

Quoted 8 lines · Drew Northup
Quoted 3 lines · Pavan Kumar Sunkara

Remove 'footnote:' from git-notes.txt which is responsible for the warnings surfacing during the generation of git documentation.

What version of asciidoc are you using? Perhaps that works just fine with newer versions?

Good call.  This was fixed by Docbook XSL 1.76.0:

Quoted 8 lines

       Norman Walsh: block.xsl; endnotes.xsl

               Fix bug where simpara in footnote didn't work.

The symptoms are a warning and a little extra vertical space after the numberal "1." in the output.  I don't know if it is worth working around or not.

So, using newest version will not give us a warning?

Signature · 1 line
- Pavan Kumar Sunkara
#4 lore raw
Quoted 6 lines · Pavan Kumar Sunkara
Quoted 4 lines · Jonathan Nieder

Good call.  This was fixed by Docbook XSL 1.76.0:

       Norman Walsh: block.xsl; endnotes.xsl

Quoted 7 lines
Quoted 5 lines

               Fix bug where simpara in footnote didn't work.

The symptoms are a warning and a little extra vertical space after the numberal "1." in the output.  I don't know if it is worth working around or not.

So, using newest version will not give us a warning?

Yes, when I run "make -C Documentation git-notes.1" I don't get the warning or spurious blank line. Sorry for the lack of clarity. (That's no reason to not to adopt a workaround if it is pleasant, of course.)

#5 lore raw
Quoted 7 lines
Quoted 1 line

So, using newest version will not give us a warning?

Yes, when I run "make -C Documentation git-notes.1" I don't get the warning or spurious blank line.  Sorry for the lack of clarity. (That's no reason to not to adopt a workaround if it is pleasant, of course.)

Currently the documentation at
http://www.kernel.org/pub/software/scm/git/docs/git-notes.html is showing the footnote wrongly. This workaround will solve that. Jonathan, ack the patch if you want to have a workaround.

Thanks

Signature · 1 line
- Pavan Kumar Sunkara
#6 lore raw
Quoted 3 lines · Pavan Kumar Sunkara

Currently the documentation at
http://www.kernel.org/pub/software/scm/git/docs/git-notes.html is showing the footnote wrongly. This workaround will solve that.

(For reference, the linked-to page was generated with asciidoc 8.4.5 and renders the footnote as

<br />[Permitted pathnames have the
[...]
rest of the object ID.]<br />.

inline instead of a nicely labelled link like "[1]" that one might expect.)

Weird. That's not the Docbook XSL bug I pointed to --- the HTML documentation is generated by asciidoc directly, without any help from Docbook XSL. And I can't reproduce it locally, either. *digs around in asciidoc changelog* Ah, Asciidoc 8.5.1 introduced styling of footnotes:

* Styled HTML footnotes.
* Added links to HTML footnote refs.

Until the kernel.org toolchain gains that feature, wouldn't a simpler workaround be to put the footnote after the period, so it renders there as a simple line in brackets?

Barring that, it should be possible to put this information in the discussion section without disrupting the flow of the text so much, for example by putting it in parentheses or making it the last paragraph of the discussion section. A patch with such a change and mentioning in the commit message the two bugs you're working around would seem sane to me.

Thanks,
Jonathan

#7 lore raw
Quoted 5 lines

Barring that, it should be possible to put this information in the discussion section without disrupting the flow of the text so much, for example by putting it in parentheses or making it the last paragraph of the discussion section.

That is what I did.

Quoted 7 lines

A patch with such a change and
mentioning in the commit message the two bugs you're working around would seem sane to me.

Thanks,
Jonathan

I agree. So, if the patch is ok, I will rewrite the commit msg and send it again.

Thanks,
Pavan Kumar Sunkara

Signature · 1 line
- Pavan Kumar Sunkara
#10 lore raw
In reply to a message not in the archive

I am using asciidoc 8.6.3. It is the newest available in ubuntu repository.

Quoted 15 lines · Drew Northup
Quoted 4 lines · Pavan Kumar Sunkara

Remove 'footnote:' from git-notes.txt which is responsible for the warnings surfacing during the generation of git documentation.
---

What version of asciidoc are you using? Perhaps that works just fine with newer versions?
--
-Drew Northup
________________________________________________
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59

#8 lore raw
In reply to Pavan Kumar Sunkara
Quoted 8 lines · Pavan Kumar Sunkara
Quoted 7 lines

A patch with such a change and
mentioning in the commit message the two bugs you're working around would seem sane to me.

Thanks,
Jonathan

Quoted 5 lines

I agree. So, if the patch is ok, I will rewrite the commit msg and send it again.

Thanks,
Pavan Kumar Sunkara

Thanks.