Skip to content

Minor fixes#4

Open
andreasbotsikas wants to merge 3 commits into
Word-DocX:masterfrom
andreasbotsikas:minor-fixes
Open

Minor fixes#4
andreasbotsikas wants to merge 3 commits into
Word-DocX:masterfrom
andreasbotsikas:minor-fixes

Conversation

@andreasbotsikas
Copy link
Copy Markdown

Check if property exists ignoring case as it would produce a corrupted docx otherwise.
Check if stream can seek before setting position. This will allow devs to save the document directly on a System.Web.HttpResponseStream without the need to create yet another memory stream.

Check if property exists ignoring case as it would produce a corrupted docx otherwise.
This will allow devs to save the document directly on a System.Web.HttpResponseStream without the need to create yet another memory stream.
This will avoid crashing the AddProperty. Another way would be to throw an application exception, but it's much more intuitive to set an empty string instead.
@faizanj
Copy link
Copy Markdown
Contributor

faizanj commented May 28, 2013

Andreas, thanks - can you also please add corresponding unit tests for this contribution as well as your other pull request?

@andreasbotsikas
Copy link
Copy Markdown
Author

I will do so when I get some time. Do you have any naming conventions I should use? As for the stream, since I can't emulate a web request, I will try to use GZipStream which doesn't support seek either.

@faizanj
Copy link
Copy Markdown
Contributor

faizanj commented May 28, 2013

The original source code was using camel case convention so we are doing the same. We also haven't made any big (resharper-based) refactoring changes to the source code.

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