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

wsd: support line-breaks in watermark text #565

Merged
merged 3 commits into from Nov 11, 2020
Merged

Conversation

Ashod
Copy link
Contributor

@Ashod Ashod commented Nov 9, 2020

New-line breaks can now be inserted in the watermark
text using \n.

The watermark handler member has been fully encapsulated
inside ChildSession, so there is no need to have public
members or circular dependencies (ChildSession owns Watermark
instance, and Watermark takes ChildSession instance to
construct and initialize).

Minor refactoring and const-correctness improvements.

Change-Id: I66188c2619dd7c95b872c87c5144810b06554442

kit/Watermark.hpp Outdated Show resolved Hide resolved
@timar timar requested a review from kendy November 9, 2020 12:18
Copy link
Contributor

@kendy kendy left a comment

Choose a reason for hiding this comment

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

Would be really good to change the LOG_ERR to a less scary loglevel as Andras pointed out.

Also in general, would be great to split functional changes and non-functional ones (like the const correctness) to separate patches - now when we have a review tool that allows to push several patches as part of one PR :-) - but please don't change it for this one, only the LOG_ERR is blocking at the moment.

Change-Id: Ie75ae1cc73791af2e8f52b7ccab438b7adbd795e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
The watermark handler member has been fully encapsulated
inside ChildSession, so there is no need to have public
members or circular dependencies (ChildSession owns Watermark
instance, and Watermark takes ChildSession instance to
construct and initialize).

Minor refactoring and const-correctness improvements.

This is a non-functional patch.

Change-Id: I32525c47e35e96fc5314e107639be93ebc49a60e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
New-line breaks can now be inserted in the watermark
text using
. This helps break long watermark texts
at desired points and therefore make watermarks more
readable.

Change-Id: Ifee6faa06c9fb1fac38e5a4036c2e225829d796d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
@kendy kendy merged commit 3dff047 into master Nov 11, 2020
@kendy kendy deleted the private/ash/watermark branch November 11, 2020 07:14
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

3 participants