Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for escaping control chars in strings
Initial fix for issue #42
- Loading branch information
Showing
6 changed files
with
109 additions
and
6 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/***************************************************************************** | ||
* Test cases for libxlsxwriter. | ||
* | ||
* Test to compare output against Excel files. | ||
* | ||
* Copyright 2014-2015, John McNamara, jmcnamara@cpan.org | ||
* | ||
*/ | ||
|
||
#include "xlsxwriter.h" | ||
|
||
int main() { | ||
|
||
lxw_workbook *workbook = new_workbook("test_shared_strings01.xlsx"); | ||
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL); | ||
uint8_t i; | ||
char c[] = {0x00, 0x00}; | ||
|
||
for (i = 1; i < 127; i++) { | ||
(*c)++; | ||
if (i != 34) { | ||
worksheet_write_string(worksheet, i, 0, c, NULL); | ||
|
||
} | ||
} | ||
|
||
return workbook_close(workbook); | ||
} |
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
Binary file not shown.