Skip to content
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

const String index_html_string PROGMEM = R"rawliteral( cause Ctrl-T feature to no longer work. #11497

Closed
roblatour opened this issue May 7, 2021 · 1 comment
Labels
Component: IDE The Arduino IDE Type: Bug Type: Duplicate Another item already exists for this topic Upstream notified Related to a software component maintained by someone else. They have been notified of it

Comments

@roblatour
Copy link

roblatour commented May 7, 2021

I am using the latest nightly build 1.8.14 2021/05/07 12:33

Near the top of my code, I have a global const defined as follows:

`const String index_html_string PROGMEM = R"rawliteral(

)rawliteral";`

defined in that way, my sketch compiles and runs just fine. However, in the IDE the Ctrl-T feature to autoindent my code no longer works.

I have found that if I put quotes around the literal as follows:

`const String index_html_string PROGMEM = R"rawliteral("

")rawliteral";`

the sketch compile fine, and the Ctrl-T feature works again, but the program does not run fine as the opening and closing quotes then become included as part of the string itself.

@per1234 per1234 added Component: IDE The Arduino IDE Type: Bug Upstream notified Related to a software component maintained by someone else. They have been notified of it labels May 7, 2021
@per1234
Copy link
Collaborator

per1234 commented May 7, 2021

Hi @roblatour. Thanks for taking the time to submit an issue.

I see we already have a prior issue report about this at #10946.

It's best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as completed May 7, 2021
@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE Type: Bug Type: Duplicate Another item already exists for this topic Upstream notified Related to a software component maintained by someone else. They have been notified of it
Projects
None yet
Development

No branches or pull requests

2 participants