diff --git a/.github/workflows/test_publish.yml b/.github/workflows/test_publish.yml index 3be0d9d..9b6b0fe 100644 --- a/.github/workflows/test_publish.yml +++ b/.github/workflows/test_publish.yml @@ -2,11 +2,11 @@ name: Build multi-arch Docker Image on: # Build and push - release: - types: [published] + #release: + # types: [published] # Build only - push: - branches: [main] + #push: + # branches: [main] # TODO - enable build on pull requests if build times can be reduced # pull_request: workflow_dispatch: diff --git a/abogen/gui.py b/abogen/gui.py index cccdbc9..322d5cc 100644 --- a/abogen/gui.py +++ b/abogen/gui.py @@ -571,7 +571,7 @@ class abogen(QWidget): self.use_gpu = self.config.get( "use_gpu", True # Load GPU setting with default True ) - self.replace_single_newlines = self.config.get("replace_single_newlines", True) + self.replace_single_newlines = self.config.get("replace_single_newlines", False) self._pending_close_event = None self.gpu_ok = False # Initialize GPU availability status diff --git a/abogen/utils.py b/abogen/utils.py index 3638301..46f77b9 100644 --- a/abogen/utils.py +++ b/abogen/utils.py @@ -91,7 +91,7 @@ _sleep_procs = {"Darwin": None, "Linux": None} # Store sleep prevention process def clean_text(text, *args, **kwargs): # Load replace_single_newlines from config cfg = load_config() - replace_single_newlines = cfg.get("replace_single_newlines", True) + replace_single_newlines = cfg.get("replace_single_newlines", False) # Collapse all whitespace (excluding newlines) into single spaces per line and trim edges lines = [re.sub(r"[^\S\n]+", " ", line).strip() for line in text.splitlines()] text = "\n".join(lines)