Skip to contentSkip to conversation

Strangeness in generated xen-command-line.html

DISCUSSION Ian Campbell 3 participants 12 messages Nov 19, 2014 – Nov 20, 2014

lore
Share & tools
lore
#0 lore raw

http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html has a bunch of random sha id's in it, where the 4.4-testing version does not.

They seem to have replaced the various

        `= <boolean>`
        
        Default: `true`

Bits.

Andy, Any thoughts or should I investigate?

I don't see anything since 4.4 touching the html generation itself (we added pandoc for pdf but didn't touch HTML afaict).

Ian.

#1 lore raw
Quoted 8 lines · Ian Campbell

http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html has a bunch of random sha id's in it, where the 4.4-testing version does not.

They seem to have replaced the various

        `= <boolean>`
        
        Default: `true`
Quoted 6 lines

Bits.

Andy, Any thoughts or should I investigate?

I don't see anything since 4.4 touching the html generation itself (we added pandoc for pdf but didn't touch HTML afaict).

FWIW it seems to happen from the conring_size entry onwards, The "com1,com2" and earlier are OK. I can't see anything about thecom1,com2 entry which would be causing this...

Quoted 8 lines

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
In reply to Ian Campbell
Quoted 8 lines · Ian Campbell

http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html has a bunch of random sha id's in it, where the 4.4-testing version does not.

They seem to have replaced the various

        `= <boolean>`
        
        Default: `true`
Quoted 9 lines

Bits.

Andy, Any thoughts or should I investigate?

I don't see anything since 4.4 touching the html generation itself (we added pandoc for pdf but didn't touch HTML afaict).

Ian.

I have looked into it before but didn't get very far. I suspect it might be a bug in wheezy's markdown. It doesn't reproduce when building using other versions of markdown.

I had planned (given some non-existent free time) to see about converting it from markdown to pandoc which has leads to a far more nicely formatted document.

~Andrew

#3 lore raw
Quoted 16 lines · Andrew Cooper
Quoted 15 lines · Ian Campbell

http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html has a bunch of random sha id's in it, where the 4.4-testing version does not.

They seem to have replaced the various

        `= <boolean>`
        
        Default: `true`

Bits.

Andy, Any thoughts or should I investigate?

I don't see anything since 4.4 touching the html generation itself (we added pandoc for pdf but didn't touch HTML afaict).

Quoted 6 lines
Quoted 2 lines

Ian.

I have looked into it before but didn't get very far. I suspect it might be a bug in wheezy's markdown. It doesn't reproduce when building using other versions of markdown.

Right.

It seems to be triggered by the line:
S is an integer 1 or 2 for the number of stop bits.
just removing that makes the issue go away. It's not the `s since removing just those retains the issue. WTAF!

Ian.

#4 lore raw
Quoted 22 lines · Ian Campbell
Quoted 13 lines · Andrew Cooper
Quoted 12 lines · Ian Campbell

http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html has a bunch of random sha id's in it, where the 4.4-testing version does not.

They seem to have replaced the various

        `= <boolean>`
        
        Default: `true`

Bits.

Andy, Any thoughts or should I investigate?

Quoted 8 lines
Quoted 5 lines

I don't see anything since 4.4 touching the html generation itself (we added pandoc for pdf but didn't touch HTML afaict).

Ian.

I have looked into it before but didn't get very far. I suspect it might be a bug in wheezy's markdown. It doesn't reproduce when building using other versions of markdown.

Quoted 9 lines

Right.

It seems to be triggered by the line:
S is an integer 1 or 2 for the number of stop bits.
just removing that makes the issue go away. It's not the `s since removing just those retains the issue. WTAF!

Ian.

So it does. As best as I can tell, that is all legal mardown for a nested block.

~Andrew

#5 lore raw
Quoted 30 lines · Andrew Cooper
Quoted 29 lines · Ian Campbell
Quoted 13 lines · Andrew Cooper
Quoted 12 lines · Ian Campbell

http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html has a bunch of random sha id's in it, where the 4.4-testing version does not.

They seem to have replaced the various

        `= <boolean>`
        
        Default: `true`

Bits.

Andy, Any thoughts or should I investigate?

Quoted 8 lines
Quoted 5 lines

I don't see anything since 4.4 touching the html generation itself (we added pandoc for pdf but didn't touch HTML afaict).

Ian.

I have looked into it before but didn't get very far. I suspect it might be a bug in wheezy's markdown. It doesn't reproduce when building using other versions of markdown.

Right.

It seems to be triggered by the line:
S is an integer 1 or 2 for the number of stop bits.
just removing that makes the issue go away. It's not the `s since removing just those retains the issue. WTAF!

Quoted 5 lines
Quoted 2 lines

Ian.

So it does. As best as I can tell, that is all legal mardown for a nested block.

Removing the preceeding nested list also "fixes" it, so I suspect some sort of error in handling nested lists with surrounding text in the parent entry, or something. I've not been able to find a workaround...

Quoted 2 lines

~Andrew

#6 lore raw
Quoted 1 line · Ian Campbell

I've not been able to find a workaround...

This works for me...

8<---------------

Quoted 1 line

From 3483179d333c47deacfc8c2eb195bf7dc4a555ff Mon Sep 17 00:00:00 2001

From: Ian Campbell <[email protected]>
Date: Wed, 19 Nov 2014 10:42:18 +0000
Subject: [PATCH] docs: workaround markdown parser error in
xen-command-line.markdown

Some versions of markdown (specifically the one in Debian Wheezy, currently used to generate
http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html) seem to be confused by nested lists in the middle of multi-paragraph parent list entries as seen in the com1,com2 entry.

The effect is that the "Default" section of all following entries are replace by some sort of hash or checksum (at least, a string of 32 random seeming hex digits).

Workaround this issue by making the decriptions of the DPS options a nested list, moving the existing nested list describing the options for S into a third level list. This seems to avoid the issue, and is arguably better formatting in its own right (at least its not a regression IMHO)

---
 docs/misc/xen-command-line.markdown |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
docs/misc/xen-command-line.markdown +8 -8
index 0830e5f..c40f89b 100644
@@ -248,17 +248,17 @@ Both option `com1` and `com2` follow the same format.
 * `DPS` represents the number of data bits, the parity, and the number
   of stop bits.
 
-  `D` is an integer between 5 and 8 for the number of data bits.
+  * `D` is an integer between 5 and 8 for the number of data bits.
 
-  `P` is a single character representing the type of parity:
+  * `P` is a single character representing the type of parity:
 
-   * `n` No
-   * `o` Odd
-   * `e` Even
-   * `m` Mark
-   * `s` Space
+      * `n` No
+      * `o` Odd
+      * `e` Even
+      * `m` Mark
+      * `s` Space
 
-  `S` is an integer 1 or 2 for the number of stop bits.
+  * `S` is an integer 1 or 2 for the number of stop bits.
 
 * `<io-base>` is an integer which specifies the IO base port for UART
   registers.
Signature · 1 line
1.7.10.4
#7 lore raw
Quoted 22 lines · Ian Campbell
Quoted 1 line · Ian Campbell

I've not been able to find a workaround...

This works for me...

8<---------------

From 3483179d333c47deacfc8c2eb195bf7dc4a555ff Mon Sep 17 00:00:00 2001
From: Ian Campbell <[email protected]>
Date: Wed, 19 Nov 2014 10:42:18 +0000
Subject: [PATCH] docs: workaround markdown parser error in
xen-command-line.markdown

Some versions of markdown (specifically the one in Debian Wheezy, currently used to generate
http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html) seem to be confused by nested lists in the middle of multi-paragraph parent list entries as seen in the com1,com2 entry.

The effect is that the "Default" section of all following entries are replace by some sort of hash or checksum (at least, a string of 32 random seeming hex digits).

Quoted 6 lines

Workaround this issue by making the decriptions of the DPS options a nested list, moving the existing nested list describing the options for S into a third level list. This seems to avoid the issue, and is arguably better formatting in its own right (at least its not a regression IMHO)

I had just identified a different way, but this way is slightly better.

If you take out all the blank lines visible in the context below, the resulting HTML will be correctly formatted and rather neater (i.e. without sporadic blank lines).

~Andrew

Quoted 34 lines
---
 docs/misc/xen-command-line.markdown |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
docs/misc/xen-command-line.markdown +8 -8
index 0830e5f..c40f89b 100644
@@ -248,17 +248,17 @@ Both option `com1` and `com2` follow the same format.
 * `DPS` represents the number of data bits, the parity, and the number
   of stop bits.
 
-  `D` is an integer between 5 and 8 for the number of data bits.
+  * `D` is an integer between 5 and 8 for the number of data bits.
 
-  `P` is a single character representing the type of parity:
+  * `P` is a single character representing the type of parity:
 
-   * `n` No
-   * `o` Odd
-   * `e` Even
-   * `m` Mark
-   * `s` Space
+      * `n` No
+      * `o` Odd
+      * `e` Even
+      * `m` Mark
+      * `s` Space
 
-  `S` is an integer 1 or 2 for the number of stop bits.
+  * `S` is an integer 1 or 2 for the number of stop bits.
 
 * `<io-base>` is an integer which specifies the IO base port for UART
   registers.
#8 lore raw
Quoted 28 lines · Andrew Cooper
Quoted 27 lines · Ian Campbell
Quoted 1 line · Ian Campbell

I've not been able to find a workaround...

This works for me...

8<---------------

From 3483179d333c47deacfc8c2eb195bf7dc4a555ff Mon Sep 17 00:00:00 2001
From: Ian Campbell <[email protected]>
Date: Wed, 19 Nov 2014 10:42:18 +0000
Subject: [PATCH] docs: workaround markdown parser error in
xen-command-line.markdown

Some versions of markdown (specifically the one in Debian Wheezy, currently used to generate
http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html) seem to be confused by nested lists in the middle of multi-paragraph parent list entries as seen in the com1,com2 entry.

The effect is that the "Default" section of all following entries are replace by some sort of hash or checksum (at least, a string of 32 random seeming hex digits).

Workaround this issue by making the decriptions of the DPS options a nested list, moving the existing nested list describing the options for S into a third level list. This seems to avoid the issue, and is arguably better formatting in its own right (at least its not a regression IMHO)

Quoted 7 lines
Quoted 1 line

I had just identified a different way, but this way is slightly better.

If you take out all the blank lines visible in the context below, the resulting HTML will be correctly formatted and rather neater (i.e. without sporadic blank lines).

Agreed.

8<------

Quoted 1 line

From 53398a9729d391f1fb7b6f753a0032b1f3604d4d Mon Sep 17 00:00:00 2001

From: Ian Campbell <[email protected]>
Date: Wed, 19 Nov 2014 10:42:18 +0000
Subject: [PATCH] docs: workaround markdown parser error in
xen-command-line.markdown

Some versions of markdown (specifically the one in Debian Wheezy, currently used to generate
http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html) seem to be confused by nested lists in the middle of multi-paragraph parent list entries as seen in the com1,com2 entry.

The effect is that the "Default" section of all following entries are replace by some sort of hash or checksum (at least, a string of 32 random seeming hex digits).

Workaround this issue by making the decriptions of the DPS options a nested list, moving the existing nested list describing the options for S into a third level list. This seems to avoid the issue, and is arguably better formatting in its own right (at least its not a regression IMHO)

---
v2: Less blank lines == nicer output.

---
 docs/misc/xen-command-line.markdown |   21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)
docs/misc/xen-command-line.markdown +8 -13
index 0830e5f..b7eaeea 100644
@@ -247,19 +247,14 @@ Both option `com1` and `com2` follow the same format.
 * Optionally, a clock speed measured in hz can be specified.
 * `DPS` represents the number of data bits, the parity, and the number
   of stop bits.
-
-  `D` is an integer between 5 and 8 for the number of data bits.
-
-  `P` is a single character representing the type of parity:
-
-   * `n` No
-   * `o` Odd
-   * `e` Even
-   * `m` Mark
-   * `s` Space
-
-  `S` is an integer 1 or 2 for the number of stop bits.
-
+  * `D` is an integer between 5 and 8 for the number of data bits.
+  * `P` is a single character representing the type of parity:
+      * `n` No
+      * `o` Odd
+      * `e` Even
+      * `m` Mark
+      * `s` Space
+  * `S` is an integer 1 or 2 for the number of stop bits.
 * `<io-base>` is an integer which specifies the IO base port for UART
   registers.
 * `<irq>` is the IRQ number to use, or `0` to use the UART in poll
Signature · 1 line
1.7.10.4
Reviewed-by
#9 lore raw
Quoted 55 lines · Ian Campbell
Quoted 28 lines · Andrew Cooper
Quoted 27 lines · Ian Campbell
Quoted 1 line · Ian Campbell

I've not been able to find a workaround...

This works for me...

8<---------------

From 3483179d333c47deacfc8c2eb195bf7dc4a555ff Mon Sep 17 00:00:00 2001
From: Ian Campbell <[email protected]>
Date: Wed, 19 Nov 2014 10:42:18 +0000
Subject: [PATCH] docs: workaround markdown parser error in
xen-command-line.markdown

Some versions of markdown (specifically the one in Debian Wheezy, currently used to generate
http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html) seem to be confused by nested lists in the middle of multi-paragraph parent list entries as seen in the com1,com2 entry.

The effect is that the "Default" section of all following entries are replace by some sort of hash or checksum (at least, a string of 32 random seeming hex digits).

Workaround this issue by making the decriptions of the DPS options a nested list, moving the existing nested list describing the options for S into a third level list. This seems to avoid the issue, and is arguably better formatting in its own right (at least its not a regression IMHO)

Quoted 6 lines
Quoted 1 line

I had just identified a different way, but this way is slightly better.

If you take out all the blank lines visible in the context below, the resulting HTML will be correctly formatted and rather neater (i.e. without sporadic blank lines).

Agreed.

8<------

From 53398a9729d391f1fb7b6f753a0032b1f3604d4d Mon Sep 17 00:00:00 2001
From: Ian Campbell <[email protected]>
Date: Wed, 19 Nov 2014 10:42:18 +0000
Subject: [PATCH] docs: workaround markdown parser error in
xen-command-line.markdown

Some versions of markdown (specifically the one in Debian Wheezy, currently used to generate
http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html) seem to be confused by nested lists in the middle of multi-paragraph parent list entries as seen in the com1,com2 entry.

The effect is that the "Default" section of all following entries are replace by some sort of hash or checksum (at least, a string of 32 random seeming hex digits).

Quoted 6 lines

Workaround this issue by making the decriptions of the DPS options a nested list, moving the existing nested list describing the options for S into a third level list. This seems to avoid the issue, and is arguably better formatting in its own right (at least its not a regression IMHO)

Quoted 38 lines

---
v2: Less blank lines == nicer output.

---
 docs/misc/xen-command-line.markdown |   21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)
docs/misc/xen-command-line.markdown +8 -13
index 0830e5f..b7eaeea 100644
@@ -247,19 +247,14 @@ Both option `com1` and `com2` follow the same format.
 * Optionally, a clock speed measured in hz can be specified.
 * `DPS` represents the number of data bits, the parity, and the number
   of stop bits.
-
-  `D` is an integer between 5 and 8 for the number of data bits.
-
-  `P` is a single character representing the type of parity:
-
-   * `n` No
-   * `o` Odd
-   * `e` Even
-   * `m` Mark
-   * `s` Space
-
-  `S` is an integer 1 or 2 for the number of stop bits.
-
+  * `D` is an integer between 5 and 8 for the number of data bits.
+  * `P` is a single character representing the type of parity:
+      * `n` No
+      * `o` Odd
+      * `e` Even
+      * `m` Mark
+      * `s` Space
+  * `S` is an integer 1 or 2 for the number of stop bits.
 * `<io-base>` is an integer which specifies the IO base port for UART
   registers.
 * `<irq>` is the IRQ number to use, or `0` to use the UART in poll
#10 lore raw
Quoted 76 lines · Andrew Cooper
Quoted 9 lines · Ian Campbell
Quoted 8 lines · Andrew Cooper
Quoted 7 lines · Ian Campbell
Quoted 1 line · Ian Campbell

I've not been able to find a workaround...

This works for me...

8<---------------

From 3483179d333c47deacfc8c2eb195bf7dc4a555ff Mon Sep 17 00:00:00

2001

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

From: Ian Campbell <[email protected]>
Date: Wed, 19 Nov 2014 10:42:18 +0000
Subject: [PATCH] docs: workaround markdown parser error in
xen-command-line.markdown

Some versions of markdown (specifically the one in Debian Wheezy,

currently

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

used to generate
http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html)

seem to be

Quoted 1 line
Quoted 1 line
Quoted 1 line

confused by nested lists in the middle of multi-paragraph parent

list entries

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

as seen in the com1,com2 entry.

The effect is that the "Default" section of all following entries

are replace

Quoted 1 line
Quoted 1 line
Quoted 1 line

by some sort of hash or checksum (at least, a string of 32 random

seeming hex

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

digits).

Workaround this issue by making the decriptions of the DPS options

a nested

Quoted 1 line
Quoted 1 line
Quoted 1 line

list, moving the existing nested list describing the options for S

into a third

Quoted 1 line
Quoted 1 line
Quoted 1 line

level list. This seems to avoid the issue, and is arguably better

formatting in

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

its own right (at least its not a regression IMHO)

I had just identified a different way, but this way is slightly

better.

Quoted 2 lines
Quoted 2 lines

If you take out all the blank lines visible in the context below,

the

Quoted 7 lines
Quoted 2 lines

resulting HTML will be correctly formatted and rather neater (i.e. without sporadic blank lines).

Agreed.

8<------

From 53398a9729d391f1fb7b6f753a0032b1f3604d4d Mon Sep 17 00:00:00

2001

Quoted 6 lines

From: Ian Campbell <[email protected]>
Date: Wed, 19 Nov 2014 10:42:18 +0000
Subject: [PATCH] docs: workaround markdown parser error in
xen-command-line.markdown

Some versions of markdown (specifically the one in Debian Wheezy,

currently

Quoted 2 lines

used to generate
http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html) seem

to be

Quoted 1 line

confused by nested lists in the middle of multi-paragraph parent list

entries

Quoted 3 lines

as seen in the com1,com2 entry.

The effect is that the "Default" section of all following entries are

replace

Quoted 1 line

by some sort of hash or checksum (at least, a string of 32 random

seeming hex

Quoted 3 lines

digits).

Workaround this issue by making the decriptions of the DPS options a

nested

Quoted 1 line

list, moving the existing nested list describing the options for S

Quoted 8 lines

into a third

Quoted 1 line

level list. This seems to avoid the issue, and is arguably better

formatting in

Quoted 3 lines

its own right (at least its not a regression IMHO)

In case you were thinking of putting in 4.5

Quoted 49 lines

Review

Quoted 8 lines

---
v2: Less blank lines == nicer output.

---
 docs/misc/xen-command-line.markdown |   21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)
(quoted diff) +0 -0

b/docs/misc/xen-command-line.markdown

docs/misc/xen-command-line.markdown Both option `com1` and `com2` follow the same

Quoted 4 lines

index 0830e5f..b7eaeea 100644

docs/misc/xen-command-line.markdown +0 -0
@@ -247,19 +247,14 @@ Both option `com1` and `com2` follow the same

format.

docs/misc/xen-command-line.markdown Both option `com1` and `com2` follow the same · line 248

Quoted 2 lines
docs/misc/xen-command-line.markdown +0 -0
 * Optionally, a clock speed measured in hz can be specified.
 * `DPS` represents the number of data bits, the parity, and the

number

Quoted 13 lines
docs/misc/xen-command-line.markdown +0 -12
   of stop bits.
-
-  `D` is an integer between 5 and 8 for the number of data bits.
-
-  `P` is a single character representing the type of parity:
-
-   * `n` No
-   * `o` Odd
-   * `e` Even
-   * `m` Mark
-   * `s` Space
-
-  `S` is an integer 1 or 2 for the number of stop bits.

docs/misc/xen-command-line.markdown Both option `com1` and `com2` follow the same format.

Quoted 10 lines
docs/misc/xen-command-line.markdown +8 -1
-
+  * `D` is an integer between 5 and 8 for the number of data bits.
+  * `P` is a single character representing the type of parity:
+      * `n` No
+      * `o` Odd
+      * `e` Even
+      * `m` Mark
+      * `s` Space
+  * `S` is an integer 1 or 2 for the number of stop bits.
 * `<io-base>` is an integer which specifies the IO base port for

UART

docs/misc/xen-command-line.markdown Both option `com1` and `com2` follow the same format. · line 260

Quoted 2 lines
docs/misc/xen-command-line.markdown +0 -0
   registers.
 * `<irq>` is the IRQ number to use, or `0` to use the UART in poll

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel