Skip to content

Commit 837ef7b

Browse files
committed
Various updates for v4.6.6
Various updates for v4.6.6
1 parent 6a6d7a5 commit 837ef7b

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

CSVLintNppPlugin/CsvLint/CsvEdit.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,7 @@ public static void ConvertToSQL(CsvDefinition csvdef)
499499
// remember next batch
500500
batchstart = lineCount + 1;
501501

502-
sb.Append("\r\n");
503-
sb.Append("-- -------------------------------------\r\n");
502+
sb.Append("\r\n-- -------------------------------------\r\n");
504503
sb.Append("-- insert records \r\n");
505504
batchcomm = sb.Length - 2; // -2 because of the 2 characters \r\n
506505
sb.Append("-- -------------------------------------\r\n");
@@ -830,7 +829,7 @@ public static void ConvertToJSON(CsvDefinition csvdef)
830829
var colvalue = "";
831830
if (col < list.Count) colvalue = list[col];
832831

833-
var colname = csvdef.Fields[col].Name;
832+
var colname = csvdef.Fields[col].Name.Replace("\"", "\\\""); // \" Double quote
834833

835834
// adjust for quoted values, trim first because can be a space before the first quote, example .., "BMI",..
836835
var strtrim = colvalue.Trim();

CSVLintNppPlugin/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("0.4.6.5")]
36-
[assembly: AssemblyFileVersion("0.4.6.5")]
35+
[assembly: AssemblyVersion("0.4.6.6")]
36+
[assembly: AssemblyFileVersion("0.4.6.6")]
1.5 KB
Binary file not shown.
1.5 KB
Binary file not shown.

docs/readme.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,10 @@ format for the Microsoft Jet OLE DB, also known as the ODBC text driver.
586586

587587
File and column metadata in [W3C CSV schema JSON](https://www.w3.org/TR/tabular-data-primer/) format.
588588

589+
### Datadictionary CSV ###
590+
591+
File and column metadata in CSV format.
592+
589593
### Python ###
590594

591595
Generates a [Python](https://www.python.org/) script to read the csv data file
@@ -599,6 +603,12 @@ as a dataframe. It contains the required scripting for the appropriate
599603
datatypes, and it is meant as a starting point for further script development in
600604
[R-Studio](https://www.rstudio.com/products/rstudio/).
601605

606+
### PowerShell ###
607+
608+
Generates a [PowerShell](https://en.wikipedia.org/wiki/PowerShell/) script to read the csv data file
609+
as a dataset variable. It contains the required scripting for the appropriate
610+
datatypes, and it is meant as a starting point for further script development.
611+
602612
Settings
603613
--------
604614
Some plug-in settings can be changed in the menu item `Plugins > CSVLint > settings`
@@ -619,7 +629,7 @@ and they are stored in a settings file `%USERPROFILE%\AppData\Roaming\Notepad++\
619629
| TwoDigitYearMax | Maximum year for two digit year date values. For example, when set to 2024 the year values 24 and 25 will be interpreted as 2024 and 1925. Set as CurrentYear for current year. | CurrentYear |
620630
| DefaultQuoteChar | Default quote character, typically a double quote " or a single quote ' | " |
621631
| FontDock | Default font for text boxes in CSV Lint docking window. Changing the font requires closing and opening the CSV docked window. | Courier New, 11.25pt |
622-
| NullValue | Keyword for empty values or null values in the csv data, case-sensitive. | NaN |
632+
| NullKeyword | A case-sensitive keyword that will be treated as an empty value, typically `NULL`, `NaN`, `NA` or `None` depending on your data | NaN |
623633
| SeparatorColor | Include separator in syntax highlighting colors. Set to false and the separator characters are always white. | false |
624634
| Separators | Preferred characters when automatically detecting the separator character. For special characters like tab, use \\t or hexadecimal escape sequence \\u0009 or \\x09. | ,;\t&#124; |
625635
| TransparentCursor| Transparent cursor line, changing this setting will require a restart of Notepad++ | true |
@@ -658,5 +668,6 @@ History
658668
16-apr-2023 - v0.4.6.3 Syntax Highlighting fix, new SkipLines feature and quoted string improvements
659669
02-may-2023 - v0.4.6.4 Comment character and dark mode support
660670
04-jun-2023 - v0.4.6.5 Support enum/coded values and various updates
671+
16-dec-2023 - v0.4.6.6 PowerShell support and various updates
661672

662673
BdR©2023 Free to use - send questions or comments: Bas de Reuver - bdr1976@gmail.com

0 commit comments

Comments
 (0)