Comments (10)
Hi! Thank you for the bug report. That is very strange. I can only assume that the file is opened with the wrong newline mode? Can you tell me the value of your buffer-file-coding-system
?
from org-static-blog.
I tried to reproduce this bug on my machine: I create a new blog post, and save it with latin1-dos
as buffer-file-coding-system
(line endings are now \r\n
, while all other posts are \n
). I kill the buffer, then run org-static-blog-publish
. But it all works as intended, I don't get an error message.
Could there be something else going on on your machine?
from org-static-blog.
Hmm, interesting. I was able to replicate it with a dummy file.
Okay, here's what I've got:
buffer-file-coding-system
defaults to utf-8-unix
in org-mode for me.
Post file's encoding is ANSI (which is the default for Windows Notepad).
I've attached a test post that threw the error when I tried to publish it -- it wouldn't let me attach it with the .org extension, so I just renamed it .txt
from org-static-blog.
Your file worked fine for me. Emacs opens the file in undecided-dos
.
I tried this again without loading my configuration (run emacs -Q
, then eval all of org-static-blog, and only my org-static-blog-specific parts of my init.el), and it again worked without issue.
Could you try that on your machine? Just to make sure that there is nothing in your configuration that is interfering here?
from org-static-blog.
This was resolved -- it was an encoding problem on my end.
from org-static-blog.
Thank you for reporting back. I'm glad you were able to resolve your issue.
from org-static-blog.
I'm also getting a similar error, but my files are all UTF-8 encoded.
The error I get when trying to run org-static-blog-publish:
org-static-blog-get-date: Search failed: "^\#\+date:[ ]*<\([^]>]+\)>$"
from org-static-blog.
Do all your files contain the #+date:
header, and if so, can you pinpoint which one of them causes the issue?
from org-static-blog.
They do all contain the #+date:
in the header. Actually all new files I create on my computer with Ubuntu seem to cause the error. I have another machine with OSX and everything works perfectly there, so I'm really not sure what the issue is.
I am attaching a post I just made (as a txt file) that gives me the error when I run org-static-blog-publish.
Thank you for responding to this, and thank you for org-static-blog, I really like it a lot.
from org-static-blog.
Your file works fine on my computer. If I had to guess, I would say that this is still an encoding issue. Maybe your init.el is in a different encoding?
from org-static-blog.
Related Issues (20)
- Cannot output files to blog directory HOT 5
- Have `index.html` and other `html` files in different locations HOT 1
- Unknown "nil" back-end: Aborting export HOT 7
- Annoying warnings HOT 1
- Is this still maintained? HOT 3
- Last package (20221018.933) is broken. Just a typo. HOT 2
- Backend unset or broken: `org-export-barf-if-invalid-backend: Unknown "nil" back-end: Aborting export` HOT 4
- Is there a way to run multiple blogs with this package? HOT 1
- Icorrect table rendering HOT 6
- Show only post titles in multipost pages (no preview, no contents) HOT 4
- Is it possible to support navigation in tags.html HOT 1
- Why everything get's re rendered? HOT 6
- Add a publish-to (eg local/prod) function? HOT 2
- Perhaps use `org-collect-keywords` to extract date? HOT 5
- Drafts are published to directory relative to posts directory instead of drafts directory HOT 6
- Warning : 'the function ‘list-length’ is not known tobe defined.' HOT 1
- customize index page HOT 3
- Publish not working all the time HOT 1
- Generated blog posts goes to "example.com/$file-name" HOT 1
- Switch from ox-publish to org-static-blog HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org-static-blog.