-
Notifications
You must be signed in to change notification settings - Fork 37
Config colorize #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config colorize #42
Conversation
This adds control to how the <pre> tag and the line numbers are exported. I have always found it inappropriate that Frescobaldi has <pre id="document"> hardcoded. python-ly allowed to change the "document" part already, now also the id can be changed for class. I will add the interface to Frescobaldi too.
This was done by my editor automatically, so I commit it as it seems useful.
- Fix missing else clause (and rearrange logic). - Don't hardcode fallback - Make valid attributes more extensible - change name of function and field name Adresses comments #42 (comment) and #42 (comment)
Addresses comment #42 (comment)
|
Yes, and with 7b8b6e9 this has become completely simple. Isn't this now ready to be merged? |
|
Ah, sorry for asking: How about the |
|
In Python 3 print("print me") |
|
I know that, and I know that one may use workarounds to make code compatible with both 2 and 3. Unfortunately I didn't really follow what happened recently when you made Frescobaldi Python3 compatible, so I don't know if there's a convention to handle that. Is maybe Actually running a |
|
Please always use |
|
Thanks. |
|
In Frescobaldi |
I have been thinking myself that it could be desirable to notify the user about certain things regarding the MusicXML export. I guess what we want is a system that works both for GUI and CLI users. |
|
Just realized that the CSS generation has to be updated according to the attribute ( |
The closing part of the wrapper still was hard-coded to <pre>
If the CSS is produced with a wrapper_attribute of 'id' the main CSS will be an id type '#', if we have a 'class' it'll be a '.'
|
@wbsoft I think this PR is now ready to be considered for merging. |
|
@wbsoft |
|
regarding the print(), I'd raise an exception if a developer provides a wrong value to a function. |
|
Thanks for merging. I'll have a second look at the print-s |
Resolve "Support manual measure length set" Closes frescobaldi#42 See merge request bgeorge/python-ly!55
With
HtmlWriter.use_id_or_class()the user now has better controlover how the
<pre>element is exported. I did always have toreplace this manually, which was far from convenient.
I will add the respective options to Frescobaldi too.