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

remove extra line breaks in text field #461

Merged
merged 3 commits into from Feb 13, 2023

Conversation

usernaimandrey
Copy link
Contributor

@usernaimandrey usernaimandrey commented Feb 11, 2023

вынес редактор в отдельный файл

initialEditType: 'markdown',
previewStyle: 'tab',
usageStatistics: false,
initialValue: el.value.replace(/(\r?\n){2,}/g, '$1'),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

убрал регуляркой лишнии переводы стро которые прожали этот баг #452

@grozwalker
Copy link
Contributor

Супер! Спасибо!
Фиксани, пожалуйста, конфликт и давай мерджить

@usernaimandrey
Copy link
Contributor Author

Супер! Спасибо! Фиксани, пожалуйста, конфликт и давай мерджить

Пофиксил)

@grozwalker grozwalker merged commit 1efd7f3 into Hexlet:main Feb 13, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants