tim-hub / obsidian-bible-reference

Take Bible Study notes easily in the popular note-taking app Obsidian, with automatic verse and reference suggestions.
https://antioch.tech/obsidian-bible-reference/
MIT License
238 stars 42 forks source link

Carriage Returns/LFs stripped out of main.js #232

Open aknisly opened 2 months ago

aknisly commented 2 months ago

I always modify a few things in the main.js to get the specific format that I like. With the most recent update, I'm struggling to find my way around. Somehow almost all the newline/LF's (I'm not sure which?) have been stripped out. I can open a previous version of the file, and the LF's are as expected.

Is there an easy solution? Thanks much! image

I've opened this in Meld 3.20.4 and in Neovim 0.6.1 with the same results.

tim-hub commented 1 month ago

the main.js file is a minified production version,

So it does not keep the original source code format.

tim-hub commented 1 month ago

I will not recommend editing main.js file directly, because you will need to do it again and again for each new release.

If you still want to mofigy the main.js file,

You can build one and change the setting here to non production.

https://github.com/tim-hub/obsidian-bible-reference/blob/df5427aa04a2585f16adb70e5ea3937af89d14a1/scripts/esbuild.config.mjs#L41