-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Need to get raw text from DiffRow #44
Comments
It appears that the configuration |
That is right. However, this option should be optional. It will double the needed memory of each line. I will look into it but do not have much time at the moment. |
I agree completely that it should be optional. Pull request with a possible implementation has been opened for review. |
Stale issue message |
Code snippet
The function
isIncluded()
is implemented aswhere
excludePatterns
is a list of compiled regular expressions provided by the user.Challenge
The pattern is matched on the formatted lines, so the user has to provide regular expressions such as
\* <dt>Generated</dt><dd>[0-9 :~*-]*</dd>
rather than
\* <dt>Generated</dt><dd>[0-9 :-]*</dt>
which is more readable and less error prone.
In matter of fact the first regular expression doesn't work in any case because the markdown tag falls in the middle of the
</dd>
tag. For example:NB I could have used the
reportLinesUnchanged(boolean)
builder config, but then I would lose the formatted lines which are used to output markdown code. (See the comment below as well)Request
Provide methods in the DiffRow
public String getRawOldLine()
and
public String getRawNewLine()
.(By the way many thanks for this library, it's been very useful)
The text was updated successfully, but these errors were encountered: