Skip to content

Commit

Permalink
no div automerge : fixed tidy config
Browse files Browse the repository at this point in the history
  • Loading branch information
grefel committed Jan 28, 2019
1 parent 9b9f4a3 commit fd2b006
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Scripts Panel/log/
add_custom_field_to_functions.php.md
.vscode/*
2 changes: 1 addition & 1 deletion Scripts Panel/lib/tidyconfig.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ literal-attributes: no
logical-emphasis: no
lower-literals: yes
markup: yes
merge-divs: auto
merge-divs: yes
merge-emphasis: yes
merge-spans: auto
mute:
Expand Down
8 changes: 4 additions & 4 deletions Scripts Panel/press2id.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ var px = {

// Debug Stuff
if (app.extractLabel("px:debugID") == "Jp07qcLlW3aDHuCoNpBK_Gregor-") {
px.showGUI = false;
px.debug = false;
px.showGUI = true;
px.debug = true;
}

if (app.extractLabel("px:debugID") == "Jp07qcLlW3aDHuCoNpBK_Gregor") {
if (app.extractLabel("px:debugID") == "Jp07qcLlW3aDHuCoNpBK_Gregor-") {
app.insertLabel("wp2id:blogURL", px.blogURL);
px.debugPost = {postObject:{id:9, blogTitle:"Debug Run 9" }, downloadImages:true, localImageFolder:Folder("/Users/hp/oc/publishingX/15-Auftraege/2018-02-26_Wordpress2ID/Links"), blogURL:px.blogURL};
}
Expand Down Expand Up @@ -227,7 +227,7 @@ function processDok(dok) {

var xmlTempFile = File (Folder.temp + "/" + new Date().getTime() + Math.random().toString().replace(/\./, '') + "result.html" );
writeTextFile (xmlTempFile, content);

xmlTempFile = runTidy(xmlTempFile);
pBar.hit(2);

Expand Down

0 comments on commit fd2b006

Please sign in to comment.