Removes all empty lines from the given string. Args: text (str): The input string from which empty lines should be removed. Returns: str: A new string with all empty lines removed.
(text)
| 88 | '"journalctl -u backend.service -b" or "journalctl -u frontend.service -b".') |
| 89 | |
| 90 | def remove_empty_lines(text): |
| 91 | """ |
| 92 | Removes all empty lines from the given string. |
| 93 | |
| 94 | Args: |
| 95 | text (str): The input string from which empty lines should be removed. |
| 96 | |
| 97 | Returns: |
| 98 | str: A new string with all empty lines removed. |
| 99 | """ |
| 100 | return '\n'.join(line for line in text.split('\n') if line.strip()) |
| 101 | def validateRepository(git_repo_url): |
| 102 | """Checks if a GitHub repository exists. Raises an exception if not.""" |
| 103 | try: |
no test coverage detected