docs icon indicating copy to clipboard operation
docs copied to clipboard

Inline code change broke code paragraphs

Open tbm opened this issue 5 years ago • 3 comments

It seems multi-line code paragraphs were broken by commit 0091d1bdbbb312e74b1dbbcd65375779698eca75.

For example:

-    import beancount.loader  
-    …  
-    entries, errors, options = beancount.loader.load\_file(‘myfile.ledger’)  
-    for entry in entries:  
-    …
+    `import beancount.loader … entries, errors, options = beancount.loader.load_file(‘myfile.ledger’) for entry in entries: …`
-    **easy\_install-3.4 pip  
-    **Make sure you invoke the version of easy\_install which matches your Python version, e.g. easy\_install-3.5 if you have Python 3.5 installed, or more.
+    **`easy_install-3.4 pip `**Make sure you invoke the version of easy\_install which matches your Python version, e.g. easy\_install-3.5 if you have Python
 3.5 installed, or more.
-    2015-11-20 price ITOT    95.46 USD
-    2015-11-20 price LQD    115.63 USD
-    2015-11-21 price USD   1.33495 CAD
-    …
+`2015-11-20 price ITOT 95.46 USD 2015-11-20 price LQD 115.63 USD 2015-11-21 price USD 1.33495 CAD …`

tbm avatar May 12 '20 12:05 tbm

I added a special rule for these cases, but the result is still not perfect. The parsing could be further improved by changing formatting in the google doc.

xuhcc avatar May 12 '20 13:05 xuhcc

I added a special rule for these cases, but the result is still not perfect

Thanks!

The parsing could be further improved by changing formatting in the google doc.

What's broken about these entries in google doc? I checked the first and it looked ok? Intended (2 spaces) and font Consolidas.

(I don't have edit access to these documents at the moment but if you tell me what's broken I can fix once I get access)

tbm avatar May 13 '20 02:05 tbm

What's broken about these entries in google doc?

It's hard to say, but the solution may be similar to #11.

xuhcc avatar May 13 '20 09:05 xuhcc