Comments (5)
It's actually even more not-easy β you can escape newlines in single-quoted strings, so the line after that shouldn't be indented either. And f-strings can contain arbitrary Python expressions, including the same quotes again, as of 3.12.
I suspect it could still be done without the full Python parser, with a Sufficiently Cleverβ’ regex, but it may not be worth it.
from renpy.
That's how it is intended and documented to behave.
from renpy.
Sure, but it's also kinda bad - and wasn't intended. I need to think about if a fix is possible.
from renpy.
That wouldn't be easy.
You need to flag the lines that are between opening triple quotes (exclusive) and closing triple quotes (inclusive) ; where no quote is protected by backslash ; not included in a string of the other type of quote (double vs single) ; and that aren't in a comment.
from renpy.
Yes, but we do this in other parts of Ren'Py's parser, so we could do it here.
from renpy.
Related Issues (20)
- Roll forward? HOT 1
- A feature to prevent screen resolution letterboxing HOT 2
- Live2D - Dynamic zoom or position is impossible HOT 13
- Surfacing depreciated syntax to developers HOT 3
- Execute Python when dialogue strings are said HOT 2
- Add functionality for toggling Shaders on and off HOT 7
- `renpy.log` ignores linebreaks
- How with_none is used in renpy.input is not documented HOT 3
- add the ability to create const expressions at runtime HOT 1
- Rolling back automatically HOT 4
- Some `exec.py` scripts don't work if executed while the game is starting HOT 3
- Explicitly create mixers / set default volumes
- How to alter the dialogue in a game if there is no tl file? HOT 3
- [Feature Request]: adjust error message text size to display resolution HOT 1
- Text to speech, renpy.alt(force=True") not working?
- Unable to lint games in macOS HOT 6
- config.gl_test_image seems to not work HOT 4
- `config.quit_callbacks` is called on restart HOT 2
- Reorganize config.rst
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 renpy.