Skip to contentSkip to conversation

Documentation: typec.rst: Mark ascii art as a comment

PATCH In review Heikki Krogerus 2 participants 3 messages Apr 6, 2018

Subsystems (3)
lore
Share & tools
lore

Heikki Krogerus

author maintainer
#0 lore raw

PATCH 1/1 Documentation: typec.rst: Mark ascii art as a comment

To prevent processing of ascii art as reStructuredText elements, marking it as a comment.

Fixes bdecb33af34f ("usb: typec: API for controlling USB Type-C Multiplexers")
---
 Documentation/driver-api/usb/typec.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/driver-api/usb/typec.rst +1 -1
index feb31946490b..972c11bf4141 100644
@@ -212,7 +212,7 @@ port drivers can use USB Role Class API with those.
 
 Illustration of the muxes behind a connector that supports an alternate mode:
 
-                     ------------------------
+..                   ------------------------
                      |       Connector      |
                      ------------------------
                             |         |
author maintainer
#1 lore raw
Quoted 2 lines · Heikki Krogerus

To prevent processing of ascii art as reStructuredText elements, marking it as a comment.

I will change this, and use literal-block instead.

Quoted 12 lines
Fixes bdecb33af34f ("usb: typec: API for controlling USB Type-C Multiplexers")
---
 Documentation/driver-api/usb/typec.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/driver-api/usb/typec.rst +0 -0
index feb31946490b..972c11bf4141 100644

Documentation/driver-api/usb/typec.rst port drivers can use USB Role Class API with those. · line 218

Quoted 8 lines
Documentation/driver-api/usb/typec.rst +1 -1
@@ -212,7 +212,7 @@ port drivers can use USB Role Class API with those.
 
 Illustration of the muxes behind a connector that supports an alternate mode:
 
-                     ------------------------
+..                   ------------------------
                      |       Connector      |
                      ------------------------
                             |         |

Thanks,

#2 lore raw
In reply to Heikki Krogerus
Quoted 2 lines · Heikki Krogerus

To prevent processing of ascii art as reStructuredText elements, marking it as a comment.

Please don't. This hides the ascii art from the generated documentation.

The right fix is to use a reStructuredText literal block like this:

Documentation/driver-api/usb/typec.rst +1 -1
index feb31946490b..48ff58095f11 100644
@@ -210,7 +210,7 @@ If the connector is dual-role capable, there may also be a switch for the data
 role. USB Type-C Connector Class does not supply separate API for them. The
 port drivers can use USB Role Class API with those.
 
-Illustration of the muxes behind a connector that supports an alternate mode:
+Illustration of the muxes behind a connector that supports an alternate mode::
 
                      ------------------------
                      |       Connector      |

BR,
Jani.

Quoted 21 lines
Fixes bdecb33af34f ("usb: typec: API for controlling USB Type-C Multiplexers")
---
 Documentation/driver-api/usb/typec.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/driver-api/usb/typec.rst +1 -1
index feb31946490b..972c11bf4141 100644
@@ -212,7 +212,7 @@ port drivers can use USB Role Class API with those.
 
 Illustration of the muxes behind a connector that supports an alternate mode:
 
-                     ------------------------
+..                   ------------------------
                      |       Connector      |
                      ------------------------
                             |         |
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center