jaspervdj / patat

Terminal-based presentations using Pandoc
GNU General Public License v2.0
2.42k stars 60 forks source link

mixing tabs and spaces breaks rendering #93

Closed thoastbrot closed 4 years ago

thoastbrot commented 4 years ago

I inserted tabs into the config, which broke the rendering to an extent I thought the settings were broken. Well, they were...

edited title: it's more of a tabs vs spaces issue...

jaspervdj commented 4 years ago

@thoastbrot Thanks for reporting this! Do you still have an example of a config with tabs that's causing confusing or bad results? That would save me a bunch of time.

thoastbrot commented 4 years ago

Sure, check this file (tab before header:, in case github decides to eat it).

---
title: mixing tabs and spaces bad
author: thoastbrot
patat:
    images:
            backend: 'w3m'
            path: '/usr/lib/w3m/w3mimgdisplay'
    theme:
    header: [vividBlue,onDullBlack]
        emph: [dullBlue,italic]
...
# Thats a title

thats some text

---

# fin
jaspervdj commented 4 years ago

Interesting, it seems like the YAML is invalid but patat is suppressing the error rather than bailing out. Should be a fairly easy fix.

jaspervdj commented 4 years ago

The example will throw an error now, thanks for reporting!