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

Word Export: Prevent extra Before/After content for senses #157

Closed
wants to merge 2 commits into from

Conversation

mark-sil
Copy link
Contributor

@mark-sil mark-sil commented Sep 5, 2024

When senses are in separate paragraphs we were still adding the before and after content that was around the collection of senses. It is now only added when not in separate paragraphs.


This change is Reviewable

When senses are in separate paragraphs we were still adding
the before and after content that was around the collection
of senses.  It is now only added when not in separate paragraphs.

Change-Id: I89dc3703a42b22455ac41a8420cc0ac66a9ffc30
Copy link
Contributor

@JakeOliver28 JakeOliver28 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @mark-sil)


Src/xWorks/LcmWordGenerator.cs line 1638 at r1 (raw file):

			bool eachInAParagraph = config != null &&
									config.DictionaryNodeOptions is DictionaryNodeSenseOptions &&
									((DictionaryNodeSenseOptions)(config.DictionaryNodeOptions)).DisplayEachSenseInAParagraph;

Would this be clearer/more concise?

Code snippet:

var senseOptions = config?.DictionaryNodeOptions as DictionaryNodeSenseOptions;
bool eachInAParagraph = senseOptions?.DisplayEachSenseInAParagraph ?? false;

@JakeOliver28 JakeOliver28 enabled auto-merge (squash) September 5, 2024 15:29
@mark-sil mark-sil closed this Sep 5, 2024
auto-merge was automatically disabled September 5, 2024 17:22

Pull request was closed

@mark-sil
Copy link
Contributor Author

mark-sil commented Sep 5, 2024

closing

@mark-sil mark-sil deleted the BefAft2 branch September 5, 2024 17:22
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.

2 participants