In a saucepan cook onion and garlic in hot margarine or butter until onion is tender but not brown. Carefully stir in undrained tomatoes, tomato paste, Italian seasoning, sugar, salt, and pepper. Simmer, uncovered, about 10 minutes or until sauce is of desired consistency, stirring occasionally.