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

Something maybe wrong with the code in engine.js #139

Open
quanjinzhang opened this issue Apr 11, 2021 · 0 comments
Open

Something maybe wrong with the code in engine.js #139

quanjinzhang opened this issue Apr 11, 2021 · 0 comments

Comments

@quanjinzhang
Copy link

quanjinzhang commented Apr 11, 2021

Something maybe wrong with the code in engine.js

I think the following code block in engine.js

        // Wrap these lines at options.maxLineWidth characters
        var body = answers.body ? wrap(answers.body, wrapOptions) : false;

should be change to the follwing code:

        var answerBody = answers.body?answers.body:'';
        if (!answerBody) {
          if (answers.breakingBody) {
            answerBody = answers.breakingBody;
          } else if (answers.issuesBody) {
            answerBody = answers.issuesBody;
          }
        }
        // Wrap these lines at options.maxLineWidth characters
        var body = answerBody ? wrap(answerBody, wrapOptions) : false;

Otherwrise, how the questions "breakingBody" and "issuesBody" take effect? Do I miss something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant