beancount / docs

Beancount Documentation.
https://beancount.github.io/docs/
MIT License
43 stars 31 forks source link

Inline code change broke code paragraphs #12

Open tbm opened 4 years ago

tbm commented 4 years ago

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 …`
xuhcc commented 4 years ago

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.

tbm commented 4 years ago

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)

xuhcc commented 4 years ago

What's broken about these entries in google doc?

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