-
Notifications
You must be signed in to change notification settings - Fork 17
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
https://github.com/jackdewinter/pymarkdown/issues/1267 #1279
Merged
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
262293a
https://github.com/jackdewinter/pymarkdown/issues/810
jackdewinter 6989a49
Merge branch 'main' of https://github.com/jackdewinter/pymarkdown int…
jackdewinter a8179a7
https://github.com/jackdewinter/pymarkdown/issues/1259
jackdewinter a36e9e9
https://github.com/jackdewinter/pymarkdown/issues/1263
jackdewinter 98371ba
https://github.com/jackdewinter/pymarkdown/issues/1270
jackdewinter 0682981
Merge branch 'main' of https://github.com/jackdewinter/pymarkdown int…
jackdewinter 9c14309
https://github.com/jackdewinter/pymarkdown/issues/1272
jackdewinter c77425f
Merge branch 'main' into issue-810
jackdewinter 9072e55
https://github.com/jackdewinter/pymarkdown/issues/1274 - removing fix…
jackdewinter 7df8eda
Merge branch 'main' of https://github.com/jackdewinter/pymarkdown int…
jackdewinter 8499e3e
https://github.com/jackdewinter/pymarkdown/issues/1267
jackdewinter 45d59fd
Merge branch 'main' of https://github.com/jackdewinter/pymarkdown int…
jackdewinter 2b26b0f
https://github.com/jackdewinter/pymarkdown/issues/1258
jackdewinter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,7 +179,7 @@ def remove_last_leading_space(self) -> Optional[str]: | |
extracted_text = self.__leading_spaces | ||
self.__leading_spaces = None | ||
else: | ||
extracted_text = self.__leading_spaces[last_separator_index:] | ||
extracted_text = self.__leading_spaces[last_separator_index + 1 :] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue: Add bounds check for last_separator_index before adding 1 If last_separator_index is -1, adding 1 will still result in an invalid index. Consider adding a bounds check or handling this edge case explicitly. |
||
self.__leading_spaces = self.__leading_spaces[:last_separator_index] | ||
self.__compose_extra_data_field() | ||
return extracted_text | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: The description of Issue 1274's fix could be clearer
Consider rewording to clarify what was fixed and what remains to be addressed. For example: 'Fixed assert issues while preserving Markdown validity, though some cases may still not produce the exact intended Markdown output.'