mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	Merge pull request #6905 from mermaid-js/6780-class-diagram-newline-whitespace
6780: treat newline characters as whitespace in class diagrams
This commit is contained in:
		@@ -524,5 +524,18 @@ describe('Class diagram', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
    );
 | 
			
		||||
    it('should handle an empty class body with empty braces', () => {
 | 
			
		||||
      imgSnapshotTest(
 | 
			
		||||
        ` classDiagram
 | 
			
		||||
        class FooBase~T~ {}
 | 
			
		||||
    class Bar {
 | 
			
		||||
        +Zip
 | 
			
		||||
        +Zap()
 | 
			
		||||
    }
 | 
			
		||||
    FooBase <|-- Ba
 | 
			
		||||
        `,
 | 
			
		||||
        { flowchart: { defaultRenderer: 'elk' } }
 | 
			
		||||
      );
 | 
			
		||||
    });
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user