RunestoneInteractive / RunestoneInteractive/rs

rendering issue wuth multiple blank lines

Open
#361 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
69
Forks
117
Avg merge
6d 4h
Merged PRs (30d)
24

Description

Please check the current issues Many bug reports are duplicates, this just creates more work for us. Searching the issues first may give you your answer or a workaround! If not adding new information to an existing report is much more helpful than a new report.

What Course are you in
thinkcpp

What Page were you on
3.5 new_functions_AC_1

Describe the bug

if newLine is define as:

void newLine () {
    cout << 'a' << endl;
}

The output is "normal":

image

If I remove the << 'a', the output isn't right:

image

the html looks like:

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on the thinkcpp course page 3.5, new_functions_AC_1, using the two versions of newLine shown in the report. Inspect the generated HTML and compare the rendering with and without the cout << 'a'; done means the blank-line output is consistent with the expected result.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, html
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.