mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 01:32:42 +01:00 
			
		
		
		
	Escape text in custom module
This commit is contained in:
		
				
					committed by
					
						
						Spyros Seimenis
					
				
			
			
				
	
			
			
			
						parent
						
							710f89599e
						
					
				
				
					commit
					9e03bb61c7
				
			@@ -125,7 +125,7 @@ auto waybar::modules::Custom::update() -> void {
 | 
				
			|||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      parseOutputRaw();
 | 
					      parseOutputRaw();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    auto str = fmt::format(format_, text_, fmt::arg("alt", alt_),
 | 
					    auto str = fmt::format(format_, Glib::Markup::escape_text(text_).raw(), fmt::arg("alt", alt_),
 | 
				
			||||||
                           fmt::arg("icon", getIcon(percentage_, alt_)),
 | 
					                           fmt::arg("icon", getIcon(percentage_, alt_)),
 | 
				
			||||||
                           fmt::arg("percentage", percentage_));
 | 
					                           fmt::arg("percentage", percentage_));
 | 
				
			||||||
    if (str.empty()) {
 | 
					    if (str.empty()) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user